Sorting with unicode and lucide in Bases

Steps to reproduce

Using Unicode or Lucide icons and try to sort them in bases, tested with stars and half stars

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

The sorting from Highest -> Lowest should start with 5 stars, pass then to 4 and a half stars and continue to 0 stars

Actual result

Unicode starts at 5 starts but the next one is 4 stars, then 4 stars and a half.

Lucide starts at 4 stars and a half, then 5 stars and continues with 3 stars and a half.

Its also worth mentioning that Unicode uses A → Z for highest to lowest while Luice uses Z → A for highest to lowest

Environment

SYSTEM INFO:
Obsidian version: v1.9.10
Installer version: v1.9.10
Operating system: Windows 11 Pro 10.0.26100
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

I dont know if this could be called a bug since it seems to be sorting “correctly” but i wanted to post it anyways just in case, sorry if this is not the place

I created a reddit post yesterday with the problem and one user noted this:

unicode value for a half star (2BE9) is greater than the unicode value for a full star (2605). So the total unicode value of 5 full stars is less than 4 full stars and a half star.

Ill add screenshots showcasing the problem and differences:
Lucide sorts:


Unicode sorts


I don’t consider this a bug. Whatever formula you are using it’s outputting a string and we are using the string sort function to get the order. You can sort by rating. I don’t think there’s an easy solution for sorting by star.

Sorry for the wait I totally forgot I posted this, the formula was a very simple if else from 0-10 with direct quotation for the output so no fancy automatisms, I tought that would reduce the sorting problems to a minimum

I wouldn’t call it a bug but it’s not consistent, one A->Z is the opposite of the other, that’s weird and I think some people would get problems with that, I just wanted to make the post in case someone else have a similar problem

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.