Image Preview Scrolling Stuck in Name Ascending Order

Nextcloud version: 20.0.14
Operating system and version Debian 10
Apache or nginx version: Apache 2.4.38
PHP version: 7.3.31-1

The issue you are facing:

When previewing images and attempting to scroll through them, they only scroll in name ascending order regardless on how the files are organized in the folder. Any help or info on how to fix this issue would be greatly appreciated!

Is this the first time you’ve seen this error? (Y/N): No

Steps to replicate it:

  1. Open a folder on Nextcloud that has multiple images on it (observe and memorize what order the images are in name ascending order)

  2. Change the file order by name descending, size ascending/descending, or modified ascending/descending

  3. Press on an image to see its preview and begin to scroll using the side arrows

  4. Observe that while the folder is organized to NOT be in name ascending order, the image scrolling will always be by name ascending`