ChurchApps / FreeShow

FreeShow is a free and open-source, user-friendly presenter software.
https://freeshow.app
GNU General Public License v3.0
515 stars 79 forks source link

[Bug Report] File Ordering Discrepancy Between Media Panel and Finder in FreeShow #868

Closed jquyatt closed 4 days ago

jquyatt commented 5 days ago

Describe the bug When importing media files into FreeShow, there is a discrepancy in the way files are ordered in the Media panel compared to the Finder window on macOS. In the Finder, files are displayed sequentially (e.g., tinywow_FreeShow Bug Report_66117300_1.jpg, tinywow_FreeShow Bug Report_66117300_2.jpg, etc.), but in FreeShow’s Media panel, the order is inconsistent and does not match the Finder’s alphabetical sorting. This discrepancy has led to presentations being incorrectly imported when drag-and-dropped from the Media panel instead of from Finder.

Reproducing

  1. Open Finder on macOS and navigate to a folder containing sequentially named image files (e.g., file_1.jpg, file_2.jpg, etc.).
  2. Open FreeShow and import these files into the Media section.
  3. Compare the order of the files in FreeShow’s Media panel to the Finder window.

Screenshots

Screenshot 2024-10-03 at 7 11 52 PM

Behavior after selecting all slides from the Media panel and dragging them up into a blank show.

Screenshot 2024-10-03 at 6 47 39 PM

Behavior after selecting all slides from the Finder window and dragging them into a blank show.

Version

Additional context It appears that FreeShow might not be handling file names with numerical sequences correctly, especially when the sequence starts with single-digit numbers (e.g., 1, 2, 3 vs. 10, 11, 12). It’s possible that the program is treating 1 and 10 as similar values, leading to the incorrect order.

jquyatt commented 5 days ago

Just caught the update to 1.2.8 official, and still seeing the same behavior.

vassbo commented 4 days ago

Sorting alphabetically gives that order, but I added a custom number sort, try it out: https://github.com/ChurchApps/FreeShow/releases/tag/v1.2.9-beta.1