Sort numbers lexicographically: Difference between revisions

add RPL
(add RPL)
Line 1,469:
<pre>
Lexicographical numbers = [1,10,11,12,13,2,3,4,5,6,7,8,9]
</pre>
 
=={{header|RPL}}==
{{works with|HP|49}}
≪ { }
1 ROT '''FOR''' j
j →STR + '''NEXT'''
SORT ≪ STR→ ≫ MAP
≫ '<span style="color:blue">LEXICON</span>' STO
 
13 <span style="color:blue">LEXICON</span>
{{out}}
<pre>
1: { 1 10 11 12 13 2 3 4 5 6 7 8 9 }
</pre>
 
1,151

edits