RosettaCodeData/Task/Sort-using-a-custom-comparator/00-TASK.txt

12 lines
369 B
Plaintext

{{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>