Sort using a custom comparator: Difference between revisions

Content added Content deleted
(→‎{{header|AppleScript}}: Added two more solutions)
Line 407: Line 407:
end script
end script


-- Sort the whole the list using the above customiser.
-- Sort the whole list using the above customiser.
tell sorter to sort(listOfText, 1, -1, {comparer:descendingByLengthThenDescendingLexicographically})
tell sorter to sort(listOfText, 1, -1, {comparer:descendingByLengthThenDescendingLexicographically})
return listOfText</lang>
return listOfText</lang>