Skip to content

Fix file browser sorting by date, size, and type - #2969

Open
harshad1 wants to merge 2 commits into
gsantner:masterfrom
harshad1:bugfix_file_sort_order
Open

harshad1 wants to merge 2 commits into
gsantner:masterfrom
harshad1:bugfix_file_sort_order

Conversation

@harshad1

Copy link
Copy Markdown
Collaborator

Previously, the file browser joined each file’s sort value and filename into one string. A filename starting with digits could be read as part of the timestamp or size, so an older or smaller 99.txt could sort after a newer or larger a.txt.

The file browser now compares modification time, size, or file type first, then uses natural filename order to break ties. For example, 2.txt comes before 10.txt when their sort values match.

@harshad1

Copy link
Copy Markdown
Collaborator Author

Addresses #2949. Files whose names start with digits now sort by their actual modification time. Natural filename order is used only when the timestamps match.

This branch has not been deployed

No deployments
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.

1 participant