Sort using a custom comparator: Difference between revisions
Content added Content deleted
(→{{header|AppleScript}}: Added two more solutions) |
m (→{{header|AppleScript}}: Fixed typo.) |
||
Line 407: | Line 407: | ||
end script |
end script |
||
-- Sort the whole |
-- 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> |