The map changes the sentences to arrays of arrays. Each such an array has two elements: the word to sort on and the original sentence.
sort just sorts the arrays according to their first element, i.e. the sort word.
map transforms the arrays back to sentences.
In reply to Re^3: ordering array of sentences
by choroba
in thread ordering array of sentences
by welle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |