From 0c49049db5ed43f263bc960b5da06900b699f73a 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 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; -- 2.11.0