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

Sort entries during validation/build #13

Open
2 tasks
beechnut opened this issue Feb 2, 2022 · 1 comment
Open
2 tasks

Sort entries during validation/build #13

beechnut opened this issue Feb 2, 2022 · 1 comment
Labels
development Work that has a software development focus

Comments

@beechnut
Copy link
Collaborator

beechnut commented Feb 2, 2022

I'd love to have a deterministic sorting algorithm that alphabetizes while also keeping acronyms grouped with terms.

For example:

ATO: ...

Authority to operate: ... # term belonging to ATO

Authority: ... # no acronym, AU comes after AT (but normal sorting would have this and the above switched)

POP: ...

Period of performance: ... # terms belonging to POP, alpha-sorted

Procurement Operating Procedure: ...
  • Step 1: Just sort the keys (sort while downcased to avoid capitalization comparison weirdness)
  • Step 2: Use the more advanced algo
@beechnut
Copy link
Collaborator Author

beechnut commented Feb 2, 2022

YAML outputs strings in folded format, and I can't find a way to output folded strings. This may be a lot more effort than it's worth.

@tadhg-ohiggins tadhg-ohiggins added the development Work that has a software development focus label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Work that has a software development focus
Projects
None yet
Development

No branches or pull requests

2 participants