This video goes over how to reorder custom attributes in Maya with Python scripting. The script saves all attr information, deletes them and remakes them in the desired order. I will not post the code, since the code is visible in the video anyway and I want you to be able to recreate yourselves (teaching moment). I made this video to show that reordering custom attributes can be done.