From 3a5b075c908646915ca522c10ba3057fcbb6d6ab Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 4 May 2010 16:33:46 +0000 Subject: [PATCH] Fixed Patron Search Results 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 --- members/member.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/member.pl b/members/member.pl index 700f200efd..58485b634f 100755 --- a/members/member.pl +++ b/members/member.pl @@ -80,7 +80,7 @@ if ($orderbyparams){ 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 -- 2.39.5