Sort three variables: Difference between revisions

m
m (→‎{{header|Phix}}: reformat)
Line 1,772:
Phix is naturally polymorphic
<lang Phix>object {x,y,z} = {"lions, tigers, and","bears, oh my","(from the \"Wizard of OZ\")"}
?{x,y,z}
{x,y,z} = sort({x,y,z}) ?{x,y,z}
?{x,y,z}
 
{x,y,z} = {77444,-12,0} ?{x,y,z}
{x,y,z} = sort({x,y,z}) ?{x,y,z}</lang>
?{x,y,z}
{x,y,z} = sort({x,y,z})
?{x,y,z}</lang>
{{out}}
<pre>{"lions, tigers, and","bears, oh my","(from the \"Wizard of OZ\")"}
7,795

edits