- I wonder what is the best C# data structure I should use to sort efficiently?
- Is it List or Array or what?
- And why the standard array [] does not implement sort method in it?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Both Lists and Arrays can be sorted, as can other data structures.
The efficiency of the sort depends on what data you are sorting, and what sorting algorithm you are using.
This site gives a good demonstration of different sorting algorithms (click on the green arrrows to start the demonstration).