[Bug] variables sorting does not consider numbers
Describe the bug Variables are sorted alphabetically and numbers suffix or prefix are not in the right sequence
Expected behavior Variable must be sorted in natural order:
--var-1
--var-2
...
--var-10
--var-11
Details (please complete the following information):
- OS: OSX Ventura 13.7
- VSCode version 1.93.1
- Extension version 2.6.4
Try using cssvar.disableSort extension setting.
I tried, but it doesn't solve the issue
It's working fine for me. Did u restart/reload your VSCode Window after changing the extension settings?
You are right: after reloading my vscode window, the extension seems to work as expected.
But this leads to another problem: I usually load custom properties from more than one file and when I disable sorting, they get merged in an unpredictable way:
Agreed! That needs to be fixed. I have low bandwidth. I'll keep this issue open to work on this later.
If you are interested, care to open a PR?
If you are interested, care to open a PR?
I'd like to, but I dont know if I will have time. Anyway I'll give it a look
Thanks