google / keep-sorted

keep-sorted is a language-agnostic formatter that sorts lines between two markers in a larger file.
Apache License 2.0
132 stars 15 forks source link

Add comment_order option to sort by line comment. #52

Open alzabo opened 1 day ago

alzabo commented 1 day ago

keep-sorted is very popular with my team and its control comments are routinely added to multiline sequences, but the results aren't what I'd prefer in some cases such as in concrete Kubernetes manifests where our options to tag data like IP addresses with a meaningful identifier are limited to code comments.