RosettaCodeData/Task/Sort-using-a-custom-comparator/00DESCRIPTION
2016-12-05 22:15:40 +01:00

10 lines
346 B
Text

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