From: Steve Sutton Date: Wed, 8 Aug 2018 20:39:04 +0000 (-0400) Subject: Add order by for the groups. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=652423a6c02f6ae2b0cca495e087f2d3af2f7962;p=WP-Plugins%2Fglm-member-db-fields.git Add order by for the groups. Sort the groups by their order. --- 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