summaryrefslogtreecommitdiffstats
path: root/lib/class/album.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r--lib/class/album.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php
index 23628b5f..cb767b15 100644
--- a/lib/class/album.class.php
+++ b/lib/class/album.class.php
@@ -146,7 +146,7 @@ class Album {
$artist_sql = "AND `artist`='" . Dba::escape($artist) . "'";
}
- $sql = "SELECT `id` FROM `song` WHERE `album`='$this->id' $artist_sql ORDER BY `pos`, `track`, `title`";
+ $sql = "SELECT `id` FROM `song` WHERE `album`='$this->id' $artist_sql ORDER BY `track`, `title`";
if ($limit) { $sql .= " LIMIT $limit"; }
$db_results = Dba::query($sql);