Enumerable.OrderBy : Enumerable « System.Linq « C# / C Sharp by API






Enumerable.OrderBy

  

using System;
using System.Linq;

static class TestArray {
    static void Main() {
        Object[] array = { "String", 12, true, 'a' };

        var types =
          array
            .Select(item => item.GetType().Name)
            .OrderBy(type => type);
    }
}

   
    
  








Related examples in the same category

1.Enumerable.Aggregate
2.Enumerable.Average()
3.Enumerable.Cast
4.Enumerable.Count()
5.Enumerable.DefaultIfEmpty
6.Enumerable.Distinct()
7.Enumerable.ElementAt
8.Enumerable.ElementAtOrDefault
9.Enumerable.ElementsAfterSelf
10.Enumerable.Empty
11.Enumerable.First
12.Enumerable.Range
13.Enumerable.Repeat
14.Enumerable.Where