I have a method that generates 5 random numbers....then adds each to a list<int> ..I need to sort the list in accending order .
List.Sort() doesn't seem to be working.
List<T>.Sort does exactly what you want, so you must be doing it wrong. If you show us what you're doing then we may be able to see what's wrong with it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.