I'm using the code below to do my sort, but it doesn't seem to be working'04=critical' '02=informational' '01=unknown' '10=test' '03=warning' '08=foo'
Any Ideas?@values = sort { substr($a,1) <=> substr($b,1) } @values;
In reply to substr sort ?? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |