feat: default order of docs more friendly for human
Version
^2.0.2
OS Version
macOS 14.0.0
Node.js Version
16.16.0
Browser Version
chrome
Link to minimal reproduction
https://algorithm.zeabur.app/dailyquestion/two-sum
Steps to reproduce
直接看网站
What is expected?
文档按照数字大小排序
What is actually happening?
Any additional comments? (optional)
No response
非 bug,默认为字典序,ref: https://d.umijs.org/guide/conventional-routing#%E6%96%87%E6%A1%A3%E6%A0%87%E9%A2%98%E5%8F%8A%E6%8E%92%E5%BA%8F
但你这个场景设置 order 会比较啰嗦,可以选择给标题补零,比如 001.xx,102.xx
非 bug,默认为字典序,ref: https://d.umijs.org/guide/conventional-routing#%E6%96%87%E6%A1%A3%E6%A0%87%E9%A2%98%E5%8F%8A%E6%8E%92%E5%BA%8F
但你这个场景设置 order 会比较啰嗦,可以选择给标题补零,比如
001.xx,102.xx
我知道使用字典,但是这样用户体验不是很好,添加0感觉怪怪的
但是这样用户体验不是很好
你说的有道理,我试了下 macOS 的 Finder 虽然也是字典序展示文件列表,但倘若文件名显式以数字开头,仍然会尊重数字的顺序(并且 macOS 似乎做得更多,比如 a.11.x 会在 a.2.x 之后)
我会将该 issue 以 feature request 的形式重新打开,如果你对排序规则优化有需求且有兴趣帮 dumi 完善,欢迎提交 PR
Hello @W-HanYu. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
你好 @W-HanYu,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。
Hello @W-HanYu. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
你好 @W-HanYu,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。
好的,我尝试做下!