using System.Linq; public class LinqProov{ public static void Main(string[] arg){ int[] arvud={3, 7, 6}; var loetelu=from a in arvud orderby a select a; foreach(var a in loetelu){ System.Console.WriteLine(a); } } } /* E:\jaagup\08\02>LinqProov 3 6 7 */