When rigging, it is very important to be able to order attributes in the channel box.
I have a python script which I used to use for this but that was always a clunky option and it isn't working in Maya 2022.2.
Really it should be easy to do this re-ordering (maybe middle mouse drag, or have an easily accessable tool similar to the script people have been using).
I couldn't find this as an existing request, which seems surprising. Maybe it is one of those things which most people don't need, but if you do need it, you really need it!
J