I'm doing a fairly basic sorting operation on an array, but the "sort down" part of it seems to be messing up the data. (If I sort "up" everything works and the rest of my code spits out a whole bunch of rows, but if I sort "down," no rows appear.)
Here's the essential part of my code. $data[$colname] is, of course, an array. Any thoughts?
if ($direction == "up") {
@natcasesort($data[$colname]);
} else if ($direction == "down") {
$data[$colname] = @array_reverse(@natcasesort($data[$colname]), true);
}
And if you're a pro and think my code looks fine... feel free to say so, and I'll know to look elsewhere in my program for the problem.
Thanks!