foreach $loc (reverse sort { int(${$a}{online}) <=> int(${$b}{online}) + } @locations)
broquaint
Update: And if I look the at code a little closer, it may even work (dereferenced the info we want, thanks davorg)
In reply to Re: Stupid, yet simple, sort question
by broquaint
in thread Stupid, yet simple, sort question
by Kage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |