github-as-code
github-as-code copied to clipboard
More intelligent sorting of keys
I wish github-mgmt didn’t sort all key alphabetically when there is a more meaningful default.
For example, with "collaborators” and “teams”, I want the keys to be in descending order: admin > maintain > push > triage > pull.
Similarly, I want crucial properties like "archived" to be at the top.
I think the default otherwise can be alphabetical.
(Implementation thought: I assume we do a custom sort function that pulls out any specific keys, sorts by that specified order, puts those first, and then adds the rest of the keys alphabetically.)