Sorts the elements of a sequence in ascending order.

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

With comparer

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