From: Cloud Dumper Date: Thu, 19 Jan 2012 14:05:41 +0000 (+0100) Subject: Sort songs also by path. X-Git-Tag: v3.0~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d12afe05419c840f6f9eb465b227c25c3d4755f9;p=nextcloud-server.git Sort songs also by path. Add song_path in the ORDER BY. Fix oc-31. --- 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(); }