Sort a list of object identifiers: Difference between revisions
m
→{{header|Factor}}: simplify
No edit summary |
m (→{{header|Factor}}: simplify) |
||
Line 211:
Factor provides the <code>human<=></code> word which converts numbers in a string to integers before comparing them.
<lang factor>USING: io qw sequences sorting sorting.human ;
qw{
1.3.6.1.4.1.11.2.17.19.3.4.0.10
1.3.6.1.4.1.11.2.17.5.2.0.79
Line 220 ⟶ 219:
1.3.6.1.4.1.11.2.17.19.3.4.0.1
1.3.6.1.4.1.11150.3.4.0
▲input [ human<=> ] sort [ print ] each</lang>
{{out}}
<pre>
|