- Home /
Does genericList.Sort() go low to high? or high to low? - for ints/floats
Does thisList.Sort() go low to high? or high to low? - for ints/floats
Would the first item of the list be the high or low value?
Does the first 'element' start counting as 0, or 1?
Those are 2 very different questions, keep in mind.
Comment
Best Answer
Answer by aldonaletto · Oct 26, 2013 at 07:10 AM
For Lists (and most arrays, if not all), the default comparer sorts in ascending order (low to high), and the first element index is 0.