print F $row_ref->{$_} for sort { $a <=> $b } keys %$row_ref;
Sorry, you want to print the userid first. Just do
print F $row_ref->{$_} for qw(userid giftid);
In reply to Re: Sorting SQL results
by choroba
in thread Sorting SQL results
by nickt9999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |