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

[Bug] Files in reverse order after importing backup #380

Open
anbraten opened this issue Oct 15, 2024 · 0 comments
Open

[Bug] Files in reverse order after importing backup #380

anbraten opened this issue Oct 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@anbraten
Copy link
Contributor

anbraten commented Oct 15, 2024

Describe the bug
When importing files from a backup they are in a different order as when the backup was done.

To Reproduce
Steps to reproduce the behavior:

  1. Add some files
  2. Check their order
  3. Create a backup
  4. Empty data / reset app
  5. Import backup
  6. Files are in reverse order

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Version 1.7.4

Additional context

I assume this is because files are added to the backup in ascending order as shown in the gallery, when importing the first file is thereby the first file from the gallery and gets the lowest importedAt value which is later on used by sort SELECT * FROM photo ORDER BY importedAt DESC.

@anbraten anbraten added the bug Something isn't working label Oct 15, 2024
@anbraten anbraten changed the title [Bug] Files in wrong order after importing backup [Bug] Files in reverse order after importing backup Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant