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 <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
flesh_fields => {
asfg => ['entries'],
asfge => ['query']
- }
+ },
+ order_by => {asfge => 'pos'}
}
]);
$cache{search_filter_groups}{$org_id} = $grps;