summaryrefslogtreecommitdiffstats
path: root/includes/venue.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/venue.php')
-rw-r--r--includes/venue.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/venue.php b/includes/venue.php
index 3ad0f06..444fd29 100644
--- a/includes/venue.php
+++ b/includes/venue.php
@@ -110,7 +110,7 @@ if ( !class_exists('GiglogAdmin_Venue') ) {
{
global $wpdb;
- $results = $wpdb->get_results("select * from wpg_venues");
+ $results = $wpdb->get_results("select * from wpg_venues ORDER BY wpgvenue_name");
return array_map(function ($r) { return new GiglogAdmin_Venue($r); }, $results);
}
@@ -125,6 +125,7 @@ if ( !class_exists('GiglogAdmin_Venue') ) {
{
global $wpdb;
$q = $wpdb->prepare("select * from wpg_venues where wpgvenue_city=%s", $city);
+ $q .=" ORDER BY wpgvenue_name";
$results = $wpdb->get_results($q);
return array_map(function ($r) { return new GiglogAdmin_Venue($r); }, $results);