Decorate-sort-undecorate idiom: Difference between revisions

m
(re-marked as incorrect)
Tag: Undo
m (→‎{{header|Phix}}: added note)
Line 667:
<span style="color: #0000FF;">?</span><span style="color: #000000;">sort_by</span><span style="color: #0000FF;">(</span><span style="color: #7060A8;">split</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"Rosetta Code is a programming chrestomathy site"</span><span style="color: #0000FF;">),</span><span style="color: #7060A8;">length</span><span style="color: #0000FF;">)</span>
<!--</syntaxhighlight>-->
Technically that does not decorate/undecorate and instead uses an anonymous parallel array, but it does only calculate each length once.
{{out}}
<pre>
7,813

edits