Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As usual in functional programming, read from right to left (or bottom to top):
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
|
|