summaryrefslogtreecommitdiffstats
path: root/lib/class/artist.class.php
diff options
context:
space:
mode:
authorflashk <flashk@ampache>2007-12-26 19:52:28 +0000
committerflashk <flashk@ampache>2007-12-26 19:52:28 +0000
commit86e0c663f66051bdebb73ac24e304864dac06eaf (patch)
tree43acaab4e569a0d181063edb61562c0690a7e682 /lib/class/artist.class.php
parent8f1db90bb22259c3d23048a0f4ef8f557d524a69 (diff)
downloadampache-86e0c663f66051bdebb73ac24e304864dac06eaf.tar.gz
ampache-86e0c663f66051bdebb73ac24e304864dac06eaf.tar.bz2
ampache-86e0c663f66051bdebb73ac24e304864dac06eaf.zip
Adding artist to playlist will order songs by album/track
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r--lib/class/artist.class.php2
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)) {