juga:
Each relay_line MUST include the following key_value in arbitrary order:
Do existing implementations accept arbitrary order here?
Good question, it seems like bw must be behind node_id, but they can have things in front and behind. I probably should create a ticket to add more test lines in [1] or include them in #25960.
Checked: in the current implementation, the only order required is that bw must appear before node_id. It probably does not make sense, but to be compatible with it, it is what this spec should say.
[1] https://gitweb.torproject.org/torspec.git/tree/dir-list-spec.txt#n131