I'm using keep-sorted in Chromium to sort some experimental flags by name. This is a little challenging as the flag definitions can span multiple lines (#if for per-platform behavior, parameters associated with a flag, etc.). Right now we're using group_prefixes to apply to everything except empty lines, but it would be nice to have a simpler solution there.
Something simple like group_by_newlines=yes which would take precedence over other grouping rules, accumulating groups until an empty line is encountered, would easily solve this for us.
(Happy to send a PR for this if it would be considered useful)