Python : Sort a List of numbers in Descending or Ascending ...
https://thispointer.com/python-sort-a-list-of-numbers-in-descending-or...Sorting the List in Descending Order using list.sort() # Sort the List in Place (Descending Order) listOfNum.sort(reverse=True) It will sort the list itself. listOfNum is now a List Sorted in Descending Order [67, 50, 45, 45, 23, 21, 11, 5, 2, 1] Complete example is as follows,