Sort songs also by path.

Add song_path in the ORDER BY.

Fix oc-31.
This commit is contained in:
Cloud Dumper 2012-01-19 15:05:41 +01:00 committed by Robin Appelman
parent ccad24a925
commit d12afe0541
1 changed files with 1 additions and 1 deletions

View 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();
}