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

What is the sort order? #5

Open
pguyot opened this issue Nov 17, 2022 · 1 comment
Open

What is the sort order? #5

pguyot opened this issue Nov 17, 2022 · 1 comment

Comments

@pguyot
Copy link

pguyot commented Nov 17, 2022

Installed product versions

  • Visual Studio: 2022
  • This extension: master

Description

Sort order is difficult to understand.
Could it be specified or be coherent with say POSIX sort(1)? At least something humans can understand.
We are trying to enforce the order on the CI and fail to figure out how it works.

Current behavior

It currently puts _ before letters and digits but after dots.
It's not coherent with known collations such as C or en_US.UTF-8

Does it depend on the configuration of the desktop machine?

@pguyot pguyot closed this as completed Nov 17, 2022
@pguyot pguyot reopened this Nov 17, 2022
@SmokyBob
Copy link
Owner

Sorry for the really late response (I didn't see the notification).

The sort is done using linq over a list of xml nodes (see for example)

I'm not sure how the sort order could be changed; if you find out, feel free to create a PR with the change.

The end goal of this extension is to keep the order consistent so that merges are safer and quicker, if the new order doesn't hinder this goal and helps you in other tasks I'll accept the PR

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

No branches or pull requests

2 participants