From ddb61e9a34fd6bd4419fb401dddcba250d75cdee Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 14 Feb 2013 10:51:37 -0500 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.11.0