Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak: remove symbol order from sorting algorithm #608

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

christoph-heinrich
Copy link
Contributor

@christoph-heinrich christoph-heinrich commented Aug 21, 2023

We were already using the same sorting algorithm as autoload.lua, but with the addition of a custom symbol order. However that symbol order was only applied to the first character, so when sorting absolute paths it doesn't actually make a difference.

Using the exact same algorithm for autoload.lua and uosc also makes it easier to apply any future improvements from one to the other.

ref. #606 (comment)

We were already using the same sorting algorithm as autoload.lua,
but with the addition of a custom symbol order. However that symbol
order was only applied to the first character, so when sorting absolute
paths it doesn't actually make a difference.

Using the exact same algorithm for autoload.lua and uosc also makes it
easier to apply any future improvements from one to the other.
@tomasklaen tomasklaen merged commit 6606f3e into tomasklaen:main Aug 21, 2023
tam1m pushed a commit to tam1m/uosc that referenced this pull request Oct 2, 2023
…#608)

We were already using the same sorting algorithm as autoload.lua,
but with the addition of a custom symbol order. However that symbol
order was only applied to the first character, so when sorting absolute
paths it doesn't actually make a difference.

Using the exact same algorithm for autoload.lua and uosc also makes it
easier to apply any future improvements from one to the other.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants