Performs a subsequent ordering of the elements in that sequence in ascending order, according to a key.

// "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

// "mango", "grape", "apple",
// "orange", "banana",
// "passionfruit",
// "raspberry", "blueberry"
Enumerable.create("grape", "passionfruit", "banana", "mango", 
                  "orange", "raspberry", "apple", "blueberry")
          .orderBy('x => x.length')
          .thenBy('x => x', function(x, y) {
                      if (x < y) return 1;
  
  										if (x > y) return -1;
  
                      return 0;
                  });