Anonymous user
Sorting algorithms/Strand sort: Difference between revisions
→{{header|AutoHotkey}}
Line 12:
string2 := string
Loop
{
{
{▼
list := A_loopfield . " " . list , index++
l := A_loopfield
if ( index = 0 )▼
}
MsgBox % "unsorted:" string2 "`n Sorted:" list▼
exitapp▼
string := list, list = "", index := 0▼
}
}
esc::ExitApp</lang>outout<lang>
unsorted:-2 0 -2 5 5 3 -1 -3 5 5 0 2 -4 4 2
|