posted 13 years ago
I have an array 'items' which have objects that need to be compared and sorted, but the array will have objects that are not mutually comparable, how can i make sure the objects which are not mutually comparable be at the end ?
I know the below one does have work when objects are not mutually comparable , should i implement sorting in this case.
Arrays.sort(items, new ItemNameComparator());