G
Guest
I'm working in Visual Studio 2005, .NET 2.0, and C#.
I've got the below. I need to be sure that Sort() does the sorting in
ascending order. Writing an IComparer Class for this seems like massive
overkill. Any suggestions on how to assure an asending order sort for my
integer List as simply as possible?
Thanks,
Randy
List<int> numbers = new List<int>();
numbers.Add(3);
numbers.Add(7);
numbers.Add(4);
numbers.Sort(); //Needs to assure ascending order
I've got the below. I need to be sure that Sort() does the sorting in
ascending order. Writing an IComparer Class for this seems like massive
overkill. Any suggestions on how to assure an asending order sort for my
integer List as simply as possible?
Thanks,
Randy
List<int> numbers = new List<int>();
numbers.Add(3);
numbers.Add(7);
numbers.Add(4);
numbers.Sort(); //Needs to assure ascending order