Add order by for the groups.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 8 Aug 2018 20:39:04 +0000 (16:39 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 8 Aug 2018 20:39:04 +0000 (16:39 -0400)
Sort the groups by their order.

setup/frontHooks.php

index 65f4327..8304a48 100644 (file)
@@ -168,7 +168,8 @@ add_filter(
                 "SELECT *
                    FROM $groupTable
                   WHERE uid = %s
-                    AND publish",
+                    AND publish
+                ORDER BY group_order",
                 $uid
             ),
             ARRAY_A