From: Mike Rylander Date: Thu, 14 Feb 2013 15:51:37 +0000 (-0500) Subject: Sort search filter group entries by 'pos' X-Git-Tag: sprint4-merge-nov22~3503 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0c49049db5ed43f263bc960b5da06900b699f73a;p=working%2FEvergreen.git Sort search filter group entries by 'pos' We use a fleshed cstore call to grab search filter groups and their entries, but we don't currently sort them by their 'pos' field, which is it's purpose. cstore will apply order_by expressions to the applicable tables in a fleshed search/retrieve. This does that. Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm index 660b20ef87..340f9f1786 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm @@ -559,7 +559,8 @@ sub load_search_filter_groups { flesh_fields => { asfg => ['entries'], asfge => ['query'] - } + }, + order_by => {asfge => 'pos'} } ]); $cache{search_filter_groups}{$org_id} = $grps;