Sort using a custom comparator: Difference between revisions

m
(Added 11l)
Line 15:
{{trans|Python}}
 
<lang 11l>V strings = ‘here are Some sample strings to be sorted’.split_pysplit(‘ ’)
 
print(sorted(strings, key' x -> (-x.len, x.uppercase())))</lang>
1,481

edits