Sort a list of object identifiers: Difference between revisions

m
→‎{{header|REXX}}: finished the cut-n-paste.
m (→‎{{header|REXX}}: updated the data with the latest object identifies, the REXX program didn't change.)
m (→‎{{header|REXX}}: finished the cut-n-paste.)
Line 425:
This REXX version supports the new and old format   (supports a leading decimal point).
<lang rexx>/*REXX program performs a sort of OID (Object IDentifiers ◄── used in Network data). */
$= .1.3.6.1.4.1.11.2.17.19.3.4.0.10 .1.3.6.1.4.1.11150.3.4.0.2 ,
.1.3.6.1.4.1.11.2.17.195.3.42.0.19 .1.3.6.1.4.1.11150.3.4.0.1 79 ,
.1.3.6.1.4.1.11.2.17.19.3.4.0.22 .1.3.6.1.4.1.11.2.17.19.3.4.0.2 ,
.1.3.6.1.4.1.11150.3.4.0.111 .1.3.6.1.4.1.11.2.17.19.3.4.0.1 ,
.1.3.6.1.4.1.11.2.17.3773.0.2 .119.3.6.1.4.1.11.2.17.19.2.0.79 1 ,
.1.3.6.1.4.1.11150.3.4.0.21 .1.3.6.1.4.1.11.2.17.19.2.0.9 ,
.1.3.6.1.4.1.11.2.17.19.3.4.0.25 .1.3.6.1.4.1.11.2.17.19.3.4.0.32 ,
.1.3.6.1.4.1.11.2.17.19.3.4.0.4 .1.3.6.1.4.1.11.2.17.19.3.4.0.31 ,
.1.3.6.1.4.1.11.2.17.19.3.4.0.3 .1.3.6.1.4.1.11.2.17.3773.0.1
#=words($) /*#: the number of OIDs in the $ list.*/
a=; do i=1 for #; @.i=word($, i); a=a @.i /*build the @ array; build a composite.*/