Skip to content

Commit

Permalink
#306 add ordering by start_position to getChildrenOf
Browse files Browse the repository at this point in the history
  • Loading branch information
kagemomiji committed Oct 21, 2023
1 parent 7f07b39 commit c0ccf61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public List<MediaFile> getChildrenOf(String path, int folderId, boolean onlyPres
*/
public List<MediaFile> getChildrenOf(String path, int folderId, boolean onlyPresent, boolean noIndexedTracks) {
return query("select " + QUERY_COLUMNS + " from media_file where parent_path=? and folder_id=?" +
(onlyPresent ? " and present" : "") + (noIndexedTracks ? " and start_position < 0" : ""), rowMapper, path, folderId);
(onlyPresent ? " and present" : "") + (noIndexedTracks ? " and start_position < 0" : "") + " order by start_position", rowMapper, path, folderId);
}

public List<MediaFile> getFilesInPlaylist(int playlistId) {
Expand Down

0 comments on commit c0ccf61

Please sign in to comment.