summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorCloud Dumper <clouddumper@gmail.com>2012-01-19 15:05:41 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-20 01:14:01 +0100
commitd12afe05419c840f6f9eb465b227c25c3d4755f9 (patch)
treed6387455aa0be3b8a66d68c8eb96f62f898c496e /apps/media
parentccad24a925b2e610881fceba9fb550f91da24162 (diff)
downloadnextcloud-server-d12afe05419c840f6f9eb465b227c25c3d4755f9.tar.gz
nextcloud-server-d12afe05419c840f6f9eb465b227c25c3d4755f9.zip
Sort songs also by path.
Add song_path in the ORDER BY. Fix oc-31.
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/lib_collection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/lib_collection.php b/apps/media/lib_collection.php
index d8dda1212e4..411acd97506 100644
--- a/apps/media/lib_collection.php
+++ b/apps/media/lib_collection.php
@@ -243,7 +243,7 @@ class OC_MEDIA_COLLECTION{
}else{
$searchString='';
}
- $query=OC_DB::prepare("SELECT * FROM *PREFIX*media_songs WHERE song_user=? $artistString $albumString $searchString ORDER BY song_track, song_name");
+ $query=OC_DB::prepare("SELECT * FROM *PREFIX*media_songs WHERE song_user=? $artistString $albumString $searchString ORDER BY song_track, song_name, song_path");
return $query->execute($params)->fetchAll();
}