Sorting object properties and some exception rules to sorting ?
posted 8 years ago
i am sorting the alphabet Strings like asdf,fdf,gdg,fdfsg, FREE
but i want to make sure whenever String value is like FREE. then i want to make it appear last in the list.
So i have written a custom code to do sorting. the interesting thing that is happening here is both the below snippets
do work same.
Question: i want to know is this the recommended approach to do or any better way preferred?