Descending Order Sorting Function

  • Share this:

Code introduction


This function takes a list of arguments and returns a new list with elements sorted in descending order.


Technology Stack : Built-in libraries

Code Type : Sort function

Code Difficulty : Beginner


                
                    
def aord_descending(args):
    return sorted(args, key=lambda x: -x)