Jump to content

Sort a list of object identifiers: Difference between revisions

m
(Add Swift)
Line 753:
data "1.3.6.1.4.1.11.2.17.19.3.4.0.1"
data "1.3.6.1.4.1.11150.3.4.0"
If M=Stack.Size>-1 then {
While DoM>0 {
addoneN=01
For i=1 to Stack.Size-1M {
\\ if peek item i > peek item i+1 then get i+1 to top, and send to i
\\ stack is a linked list, so moving items done with pointers only
if Gt(stackitem$(i), stackitem$(i+1)) then Shift i+1 : ShiftBack i : addone--N=i
}
} Until Not addone M=N-1
}
While not empty {
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.