mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #557] Specify a default sort order #328
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dreammu on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/557
Specific Demand
I would like to request a modification to the default sorting method used in the application. Currently, the items are sorted in a fixed order by default.
Implement Suggestion
Command-Line Parameter: Allow users to specify the sorting method through a command-line argument by adding a --sort parameter, like --sort mtime=desc.
Configuration File Option: Allow users to specify the sorting method in the configuration file by adding a sort key, like sort: mtime=desc.
@Crysknife007 commented on GitHub (Mar 17, 2025):
I like this idea. Perhaps it would also be useful to save the sort order to localStorage in the browser itself. In this way if users changed the sort order in their browser, and came back to dufs at a later time, this value would be retrieved from localStorage and used instead of the defaults.
@vhtmui commented on GitHub (Jun 10, 2025):
Adding the sorting parameter will affect all users, regardless of any personalized settings they have made.
You can allow users to set and save URLs with querry stings, such as
https://localhost/?order=desc&sort=name, this will sorted by name desc.@sigoden commented on GitHub (Aug 2, 2025):
We will not support this feature. Not many people are interested.
Please add the query string (e.g.,
?order=desc&sort=name) manually or use custom assets.@jiangjiangflies commented on GitHub (Nov 2, 2025):
I want this feature, too! It's not comfortable to sort order to my preferred way each time when I open dufs. I think It's worth to implement this feature.