summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-09-05 15:09:13 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-09-05 15:09:13 +0200
commitac2c4cf783e117b0c5bf3fe6d32de795382ede56 (patch)
tree19794117f158b6f917ac4a3f095a83690064020c /includes
parent98909040a8dff9fb77f9e0a9acd0b9ce81236335 (diff)
downloadgigologadmin-ac2c4cf783e117b0c5bf3fe6d32de795382ede56.tar.gz
gigologadmin-ac2c4cf783e117b0c5bf3fe6d32de795382ede56.tar.bz2
gigologadmin-ac2c4cf783e117b0c5bf3fe6d32de795382ede56.zip
Ordered venues by name in drop down
Diffstat (limited to 'includes')
-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);