I have an array[] of objects, for certain reasons I cannot change it to a List<>, is it possible to sort on the array[] of objects, based on a value in 1 field of the object?
For example
arrayOfFruit[] fruit;
fruit.sort(name);
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.
Use Array..::.Sort Method (Array, IComparer)
http://msdn.microsoft.com/en-us/library/aw9s5t8f.aspx