The order_by_descending method orders the collection in descending order using the key lambda expression. This method is not an executing function.
key: lambda expression that extracts a key from an element in the collection.
SortedEnumerable object whose elements are ordered by the key in descending order. A
SortedEnumerable will allow access to the
from py_linq import Enumerable numbers = Enumerable([80, 90, 25, 65]) descending_numbers = numbers.order_by_descending(lambda x: x).to_list() # results [90, 80, 65, 25]