Sort three variables: Difference between revisions
Content added Content deleted
(add RPL) |
|||
Line 3,125: | Line 3,125: | ||
bears, oh my! |
bears, oh my! |
||
lions, tigers, and</pre> |
lions, tigers, and</pre> |
||
=={{header|RPL}}== |
|||
{{works with|HP|48}} |
|||
≪ → x y z |
|||
≪ x y z 3 →LIST SORT LIST→ DROP |
|||
≫ ≫ '<span style="color:blue">SORT3</span>' STO |
|||
"lions, tigers, and" "bears, oh my!" "(from the 'Wizard of OZ')" <span style="color:blue">SORT3</span> |
|||
77444 -12 9 <span style="color:blue">SORT3</span> |
|||
{{out}} |
|||
<pre> |
|||
6: "bears, oh my!" |
|||
5: "lions, tigers, and" |
|||
4: "(from the 'Wizard of OZ')" |
|||
3: -12 |
|||
2: 9 |
|||
1: 77444 |
|||
</pre> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |