Well, I have a string array:
String array[] = new String[5];
array[0]="abc";
array[1]="aab";
array[2]="aaacb sf";
array[3]=" ab";
array[4]="hello";
How do I order ascending and descending?
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.
Using LINQ, you could do:
to sort ascending
And
to sort descending
Remember to add
using System.Linq;.