Sort using a custom comparator: Difference between revisions

m
(→‎{{header|AppleScript}}: Added two more solutions)
Line 407:
end script
 
-- Sort the whole the list using the above customiser.
tell sorter to sort(listOfText, 1, -1, {comparer:descendingByLengthThenDescendingLexicographically})
return listOfText</lang>
557

edits