From: Steve Sutton Date: Thu, 16 Feb 2017 19:55:50 +0000 (-0500) Subject: Order by the events:filter glm-member-db-events-get-events X-Git-Tag: v1.6.9^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=70aad0b6972eeda3bc7a799300d7adeff2445c7c;p=WP-Plugins%2Fglm-member-db-events.git Order by the events:filter glm-member-db-events-get-events Need to order the event list given by the event name. --- diff --git a/index.php b/index.php index 1754d7e..a63a1d8 100644 --- 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 * @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. diff --git a/setup/adminHooks.php b/setup/adminHooks.php index b47200a..b98557e 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -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;