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

Add config to ignore keys case in sorting #88

Open
diabolusss opened this issue May 17, 2023 · 0 comments
Open

Add config to ignore keys case in sorting #88

diabolusss opened this issue May 17, 2023 · 0 comments

Comments

@diabolusss
Copy link

diabolusss commented May 17, 2023

At the moment (RBE v1.0.6 ) when saving, the keys are saved in alphabetical order, but fixed to a camelCase sorting.
The problem arises when properties contain keys with mixed case.

authorizationlevel.action.new = Nov� �rove\u0148 autorizace
authorizationlevel.admingroups = Spr�vcovsk� skupiny
authorizationlevel.admingroups.none = \u017d�dn�
authorizationlevel.amount = Mno\u017estv�
authorizationLevel.previousPeriodPayments.DAY = Den(-y)
authorizationLevel.previousPeriodPayments.HOUR = Hodina(-y)
authorizationLevel.previousPeriodPayments.MONTH = M\u011bs�c(-y)
authorizationLevel.previousPeriodPayments.YEAR = Rok(-y)
authorizationLevel.samePreviousRecipient = Stejn� p\u0159�jemce (intern� u\u017eivatel) jako v p\u0159edchoz�ch platb�ch

After save, it becomes:

authorizationLevel.previousPeriodPayments.DAY = Den(-y)
authorizationLevel.previousPeriodPayments.HOUR = Hodina(-y)
authorizationLevel.previousPeriodPayments.MONTH = M\u011bs�c(-y)
authorizationLevel.previousPeriodPayments.YEAR = Rok(-y)
authorizationLevel.samePreviousRecipient = Stejn� p\u0159�jemce (intern� u\u017eivatel) jako v p\u0159edchoz�ch platb�ch
authorizationlevel.action.new = Nov� �rove\u0148 autorizace
authorizationlevel.admingroups = Spr�vcovsk� skupiny
authorizationlevel.admingroups.none = \u017d�dn�
authorizationlevel.amount = Mno\u017estv�

Of course, mixed case keys in a file is not a good thing (by the way, 'force keys to lowercase' setting can be useful, too), i think that same keys with different case should be treated the same.

p.s. who knows, please, point me to where the sorting happens in the RBE code.

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

1 participant