Reorder attributes in Maya, drag and drop the attributes into the desired order. Only user defined attributes can be reordered.

Installation

Copy the rjReorderAttr folder to your Maya scripts directory:

C:\Users\<USER>\Documents\maya\scripts

Usage

Add the interface and functionality to Maya:

import maya.cmds as cmds 
cmds.evalDeferred("import import rjReorderAttr; rjReorderAttr.install()")

This line of code can also be added in the userSetup.py if you would like the functionality to persist.

Display UI:

import rjReorderAttr.ui 
rjReorderAttr.ui.show()

Note

If the install command is used a button called Reorder Attributes will be added to the Channel Box - Edit menu. If this is not the case the UI can be opened with the show command. Drag and drop the attributes to reorder. Attributes are deleted in the new order and the undo commands is then ran to redo the attributes in the order preferred. A thank you too Nick Hughes for showing me the power of the undo command and how it can be used to sort attributes.