From 652423a6c02f6ae2b0cca495e087f2d3af2f7962 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 8 Aug 2018 16:39:04 -0400 Subject: [PATCH] Add order by for the groups. Sort the groups by their order. --- setup/frontHooks.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index 65f4327..8304a48 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -168,7 +168,8 @@ add_filter( "SELECT * FROM $groupTable WHERE uid = %s - AND publish", + AND publish + ORDER BY group_order", $uid ), ARRAY_A -- 2.17.1