Order by the events:filter glm-member-db-events-get-events
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Feb 2017 19:55:50 +0000 (14:55 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Feb 2017 19:55:50 +0000 (14:55 -0500)
Need to order the event list given by the event name.

index.php
setup/adminHooks.php

index 1754d7e..a63a1d8 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Events
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.6.8
+ * Version: 1.6.9
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -20,7 +20,7 @@
  * @package glmMembersDatabaseEventsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.6.8
+ * @version 1.6.9
  */
 
 /*
@@ -38,7 +38,7 @@
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.8');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.9');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.1');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index b47200a..b98557e 100644 (file)
@@ -34,7 +34,7 @@ add_filter( 'glm-member-db-events-get-events', function( $output ){
             AND T1.event = E.id AND T1.start_time IN (SELECT MIN(start_time)
                                                         FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "times
                                                        WHERE event = E.id)
-         ORDER BY start DESC",
+         ORDER BY E.name",
         ARRAY_A
     );
     return $events;