Fix sorting episodes by file name (#7456)

This commit is contained in:
Vishnu Sanal T 2024-10-20 02:16:35 +05:30 committed by GitHub
parent 361c754eb9
commit 7f45f2f9b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ public class FeedItemSortQuery {
+ PodDBAdapter.KEY_PLAYBACK_COMPLETION_DATE + " " + "DESC"; + PodDBAdapter.KEY_PLAYBACK_COMPLETION_DATE + " " + "DESC";
case DATE_OLD_NEW: case DATE_OLD_NEW:
return PodDBAdapter.TABLE_NAME_FEED_ITEMS + "." + PodDBAdapter.KEY_PUBDATE + " " + "ASC"; return PodDBAdapter.TABLE_NAME_FEED_ITEMS + "." + PodDBAdapter.KEY_PUBDATE + " " + "ASC";
case EPISODE_FILENAME_A_Z:
return PodDBAdapter.KEY_LINK + " " + "ASC";
case EPISODE_FILENAME_Z_A:
return PodDBAdapter.KEY_LINK + " " + "DESC";
case DATE_NEW_OLD: case DATE_NEW_OLD:
default: default:
return PodDBAdapter.TABLE_NAME_FEED_ITEMS + "." + PodDBAdapter.KEY_PUBDATE + " " + "DESC"; return PodDBAdapter.TABLE_NAME_FEED_ITEMS + "." + PodDBAdapter.KEY_PUBDATE + " " + "DESC";