summaryrefslogtreecommitdiffstats
path: root/lib/class/artist.class.php
diff options
context:
space:
mode:
authorspocky <spocky@ampache>2008-01-15 14:24:05 +0000
committerspocky <spocky@ampache>2008-01-15 14:24:05 +0000
commit547332df9d4b3b153888577fd0c36d3996dd8ea9 (patch)
tree2652bd1d64a8f10b9d19fdff3eb99222a54659f4 /lib/class/artist.class.php
parent675367cb4149e2806d1448a988b5adee74bc3b94 (diff)
downloadampache-547332df9d4b3b153888577fd0c36d3996dd8ea9.tar.gz
ampache-547332df9d4b3b153888577fd0c36d3996dd8ea9.tar.bz2
ampache-547332df9d4b3b153888577fd0c36d3996dd8ea9.zip
Fixed album sorting not using disk# (this time, it shouldn't break anything)
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 1409518b..70af97e2 100644
--- a/lib/class/artist.class.php
+++ b/lib/class/artist.class.php
@@ -121,7 +121,7 @@ class Artist {
$results = array();
$sql = "SELECT `album`.`id` FROM album LEFT JOIN `song` ON `song`.`album`=`album`.`id` " .
- "WHERE `song`.`artist`='$this->id' GROUP BY `album`.`id` ORDER BY `album`.`name`,`album`.`year`";
+ "WHERE `song`.`artist`='$this->id' GROUP BY `album`.`id` ORDER BY `album`.`name`,`album`.`disk`,`album`.`year`";
$db_results = Dba::query($sql);
while ($r = Dba::fetch_assoc($db_results)) {