github-as-code icon indicating copy to clipboard operation
github-as-code copied to clipboard

More intelligent sorting of keys

Open BigLep opened this issue 5 months ago • 0 comments

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.)

BigLep avatar Feb 08 '24 21:02 BigLep