Photok icon indicating copy to clipboard operation
Photok copied to clipboard

[Bug] Files in reverse order after importing backup

Open anbraten opened this issue 4 months ago • 0 comments

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 avatar Oct 15 '24 08:10 anbraten