Sort a list of object identifiers: Difference between revisions

m
J: minor performance improvement, and update description to match the recently updated code
m (→‎{{header|zkl}}: fix dumbass)
m (J: minor performance improvement, and update description to match the recently updated code)
Line 290:
Sorting:
 
<lang J> >(/: __&".;._1&.('.'&,)&.>) oids
1.3.6.1.4.1.11.2.17.5.2.0.79
1.3.6.1.4.1.11.2.17.19.3.4.0.1
Line 298:
1.3.6.1.4.1.11150.3.4.0.1 </lang>
 
In other words, for our sort key, we break the contents of each box by thean initial character'.' and treat the remainder as numbers.
 
We also pull the result out of its boxes for display purposes.
6,962

edits