Skip to content

[FR] Add reverse order sorting option to existing sorting choices #584

Open
@xiaocaoooo

Description

@xiaocaoooo

Is your feature request related to a problem? Please describe.
Currently, the existing sorting options only support ascending order (e.g., sorting by time from oldest to newest, by numerical value from smallest to largest, or by name in alphabetical order). This brings inconvenience when users need to view content in reverse order (e.g., checking the latest items first, finding the largest values quickly, or viewing names in reverse alphabetical order), as they have to manually adjust or cannot achieve the desired sorting effect directly.
目前,现有的排序选项仅支持正序排列(例如:按时间从旧到新、按数值从小到大、按名称按字母顺序排列)。当用户需要按倒序查看内容时(例如:优先查看最新项、快速找到最大数值、按字母倒序查看名称等),这种设计会带来不便,因为用户不得不手动调整或无法直接实现期望的排序效果。

Describe the solution you'd like
I hope to add a reverse order sorting option based on the existing sorting choices. Specifically:

  • For each existing sorting dimension (such as time, numerical value, name, etc.), add a corresponding reverse order sub-option (e.g., in the sorting dropdown menu, after "Sort by time (oldest first)", add "Sort by time (newest first)").
  • Alternatively, add a universal "Reverse Sort" button next to the existing sorting control. When clicked, it can instantly reverse the current sorting order, switching between ascending and descending order.
    希望在现有排序选项基础上增加倒序排序功能。具体来说:
  • 针对每个现有的排序维度(如时间、数值、名称等),增加对应的倒序子选项(例如:在排序下拉菜单中,在“按时间排序(从旧到新)”后增加“按时间排序(从新到旧)”)。
  • 或者,在现有排序控件旁增加一个通用的“反转排序”按钮,点击后可即时反转当前排序顺序,在正序和倒序间切换。

Describe alternatives you've considered
I have considered some alternative solutions, such as manually reversing the sorted results through secondary processing, but this is inefficient and not user-friendly, but it complicates the process and affects the user experience. Therefore, adding a direct reverse order sorting option is the most straightforward and effective solution.
我曾考虑过一些替代方案,例如通过二次处理手动反转排序结果,但这种方式效率低且不够友好,但流程繁琐,影响用户体验。因此,直接增加倒序排序选项是最直接有效的解决方案。

Additional context
Adding the reverse order option can be integrated into the existing sorting interface for better usability. For example, in the sorting dropdown menu, each primary sorting option can have two sub-options: "Ascending" and "Descending". Or, place a "Reverse Order" toggle button next to the sorting selector, allowing users to switch with one click.
增加倒序选项可整合到现有排序界面中以提升易用性。例如:在排序下拉菜单中,每个主排序选项下可设“正序”和“倒序”两个子选项;或在排序选择器旁设置“倒序切换”按钮,方便用户一键切换。

  • I will open one issue per request, follow the issue format and will add [FR] to the start of my issue title, and I acknowledge that if I don't follow the format, my issue might get closed without further explanation.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions