Sort three variables: Difference between revisions

Content added Content deleted
m (added a category:sorting.)
Line 689: Line 689:
bears, oh my!
bears, oh my!
lions, tigers, and</pre>
lions, tigers, and</pre>

=={{header|Phix}}==
Phix is naturally polymorphic
<lang Phix>?sort({"lions, tigers, and","bears, oh my","(from the \"Wizard of OZ\")"})
?sort({77444,-12,0})</lang>
{{out}}
<pre>
{"(from the \"Wizard of OZ\")","bears, oh my","lions, tigers, and"}
{-12,0,77444}
</pre>
You could also write "object {x,y,z} = sort(...)" if desired.


=={{header|PicoLisp}}==
=={{header|PicoLisp}}==