]> source.dussan.org Git - nextcloud-server.git/commitdiff
Sort songs also by path.
authorCloud Dumper <clouddumper@gmail.com>
Thu, 19 Jan 2012 14:05:41 +0000 (15:05 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 20 Jan 2012 00:14:01 +0000 (01:14 +0100)
Add song_path in the ORDER BY.

Fix oc-31.

apps/media/lib_collection.php

index d8dda1212e4225f6b4aa69f093427d6ee55fcd07..411acd975060f0566794b33bfd31119af96c19ef 100644 (file)
@@ -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();
        }