From: Mike Rylander Date: Thu, 14 Feb 2013 15:51:37 +0000 (-0500) Subject: Sort search filter group entries by 'pos' X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ddb61e9a34fd6bd4419fb401dddcba250d75cdee;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 1ff7f5ade5..534ebaa327 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm @@ -551,7 +551,8 @@ sub load_search_filter_groups { flesh_fields => { asfg => ['entries'], asfge => ['query'] - } + }, + order_by => {asfge => 'pos'} } ]); $cache{search_filter_groups}{$org_id} = $grps;