13 lines
228 B
Text
13 lines
228 B
Text
using System.Console;
|
|
|
|
module IntSort
|
|
{
|
|
Main() : void
|
|
{
|
|
def nums = [1, 5, 3, 7, 2, 8, 3, 9];
|
|
def sorted = nums.Sort((x, y) => x.CompareTo(y));
|
|
|
|
WriteLine(nums);
|
|
WriteLine(sorted);
|
|
}
|
|
}
|