[GH-ISSUE #557] Specify a default sort order #328

Closed
opened 2026-04-08 16:52:03 +03:00 by zhus · 4 comments
Owner

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.

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.
zhus closed this issue 2026-04-08 16:52:04 +03:00
Author
Owner

@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.

<!-- gh-comment-id:2730908502 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:2957896910 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:3146115432 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:3478078234 --> @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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#328