SebastianMC / obsidian-custom-sort

Take full control over the order and sorting of folders and notes in File Explorer in Obsidian
GNU General Public License v3.0
303 stars 23 forks source link

Possible Bug: Incorrect Chinese Support #93

Closed xsinbh closed 1 year ago

xsinbh commented 1 year ago

Problem

This is the sorting-spec:

  target-folder: /
  学业笔记
  Daliy
  编译原理
  数据库
  其他

This is the effect: image

Obviously the sorting didn't fit my expectation. The right order should be

学业笔记
Daily
编译原理
数据库
其他
任务管理器
Callouts
sortspec
Template - Daily Task
Template - New Task

This sorting-spec is just the same case as simple-case 2 in the document. I hope my perception to the grammar was correct.

If you can't type Chinese, you can copy the Chinese above for tests.

Looking forward to your reply!

Appendix

This is the default a-z sorting in Obsidian image

SebastianMC commented 1 year ago

Hi @xsinbh

I did a visual comparison of the screenshots (thank you for them! They really bring clarity):

Obsidian custom sort 93

I see the Chinese notes are ordered correctly, as set in the sorting-spec. Then, the 'Daily' note is ignored because of a typo in the spec (Daliy) and in result it falls into the group of items to be sorted alphabetically below. In other words, if a sorting-spec: contains entries which don't match any note, these entries simply have no effect.

Is the misplaced 'Daily' note the only item not sorted correctly in your report?

xsinbh commented 1 year ago

Oh, I see... I really typed daliy 😆 My fault, sorry for the interruption... Thanks!