diff options
author | flashk <flashk@ampache> | 2007-12-26 19:52:28 +0000 |
---|---|---|
committer | flashk <flashk@ampache> | 2007-12-26 19:52:28 +0000 |
commit | 86e0c663f66051bdebb73ac24e304864dac06eaf (patch) | |
tree | 43acaab4e569a0d181063edb61562c0690a7e682 | |
parent | 8f1db90bb22259c3d23048a0f4ef8f557d524a69 (diff) | |
download | ampache-86e0c663f66051bdebb73ac24e304864dac06eaf.tar.gz ampache-86e0c663f66051bdebb73ac24e304864dac06eaf.tar.bz2 ampache-86e0c663f66051bdebb73ac24e304864dac06eaf.zip |
Adding artist to playlist will order songs by album/track
-rw-r--r-- | lib/class/artist.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index 552d9645..67171faa 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -138,7 +138,7 @@ class Artist { */ public function get_songs() { - $sql = "SELECT `song`.`id` FROM `song` WHERE `song`.`artist`='" . Dba::escape($this->id) . "'"; + $sql = "SELECT `song`.`id` FROM `song` WHERE `song`.`artist`='" . Dba::escape($this->id) . "' ORDER BY album, track"; $db_results = Dba::query($sql); while ($r = Dba::fetch_assoc($db_results)) { |