RosettaCodeData/Task/Sort-using-a-custom-comparator/00-TASK.txt
2023-07-01 13:44:08 -04:00

11 lines
369 B
Text

{{Sorting Algorithm}}
{{omit from|BBC BASIC}}
;Task:
Sort an array (or list) of strings in order of descending length, and in ascending lexicographic order for strings of equal length.
Use a sorting facility provided by the language/library, combined with your own callback comparison function.
'''Note:'''   Lexicographic order is case-insensitive.
<br><br>