Sorts the elements of a sequence in descending order.

// "passionfruit", // "blueberry", "raspberry", // "banana", "orange", // "apple", "grape", "mango" Enumerable.create("grape", "passionfruit", "banana", "mango", "orange", "raspberry", "apple", "blueberry") .orderByDescending('x => x.length') .thenBy('x => x');

With comparer

// "apple", "grape", "mango", // "banana", "orange", // "blueberry", "raspberry", // "passionfruit" Enumerable.create("grape", "passionfruit", "banana", "mango", "orange", "raspberry", "apple", "blueberry") .orderByDescending('x => x.length', 'x, y => y - x') .thenBy('x => x');