<?xml version="1.0" encoding="windows-1252"?>
<node id="1003665" title="Re^3: ordering array of sentences" created="2012-11-13 11:58:50" updated="2012-11-13 11:58:50">
<type id="11">
note</type>
<author id="832495">
choroba</author>
<data>
<field name="doctext">
As usual in functional programming, read from right to left (or bottom to top):
&lt;p&gt;The [doc://map] changes the sentences to arrays of arrays. Each such an array has two elements: the word to sort on and the original sentence.
&lt;p&gt;
[doc://sort] just sorts the arrays according to their first element, i.e. the sort word.
&lt;p&gt;
[doc://map] transforms the arrays back to sentences.
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-832495"&gt;

&amp;#1604;&amp;#1405;&amp;#4285;† &amp;#6514;&amp;#6482;&amp;#9898;&amp;#10186;&amp;#4281;&amp;#5651;&amp;#5511; &amp;#5045;&amp;#5651;&amp;#5511;&amp;#9137; &amp;#4281;&amp;#6514;&amp;#119243;&amp;#409;&amp;#5651;&amp;#5511;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1003644</field>
<field name="parent_node">
1003663</field>
</data>
</node>
