We are displaying a list of objects in a JSP window and sorting it using the stardard Arrays.sort with a specialized comparator to sort on just one string within the object. Our product managers aren't happy with the standard lexicographic sorting that java uses. They want the special characters (~, !, @, etc) to appear at the head of the list instead of the tail.
Are there any suggestions on easy ways to write the comparator for this?
--
Joe Nelson
OCLC Online Computer Library Center, Inc.
Dublin, OH
Are there any suggestions on easy ways to write the comparator for this?
--
Joe Nelson
OCLC Online Computer Library Center, Inc.
Dublin, OH