By default, the patron search was pulling results in *Descending* order,
then reordering the results on the page using javascript in *Ascending* order.
This was causing screwy results where the entire list of results of multiple
pages was not in complete alphabetical order.
Fixed by changing the SQL to pull in Ascending order.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
push @orderby, {$orderbyelt[0]=>$orderbyelt[1]||0};
}
else {
- @orderby = ({firstname=>1},{surname=>1});
+ @orderby = ({surname=>0},{firstname=>0});
}
$member =~ s/,//g; #remove any commas from search string