Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use creation date instead of article ID for sorting #1161

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

di72nn
Copy link
Member

@di72nn di72nn commented May 6, 2021

I'll need to benchmark it, probably add an index.

Either I miss something or it's impossible to get "previous/next article" using SQL if creation dates may be duplicate and grow in a different direction from IDs. It is possible to select multiple articles and choose one on the Java side, but I don't think it's worth it.

Fixes #713.

@elzik
Copy link

elzik commented Nov 5, 2024

It would be nice to see this merged. I have just bumped into #713 after importing from Omnivore and I had to rejig the ID of all the entries to get the Android app to display things in a more useful order.

@jason-mehmel
Copy link

@elzik How did you rejig the ID of all of the entries?

I ran into the exact same issue.

@elzik
Copy link

elzik commented Nov 14, 2024

@elzik How did you rejig the ID of all of the entries?

I connected to the SQLite database directly and changed all the IDs of the entries as necessary. You would have to adjust the foreign keys to match.

Pretty dirty, but until this PR is merged, I am not sure what the other options would be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong sort order
3 participants