Contact: aviboots(AT)netvision.net.il
38,933 questions
50,642 answers
573 users
using System; using System.Linq; class Program { static void Main() { int[] arr = new int[] {9, 7, 3, 5, 0, 6, 1}; var result = from n in arr orderby n select n; Console.WriteLine(string.Join(", ", result)); } } /* run: 0, 1, 3, 5, 6, 7, 9 */