the order that you add or write/code them, is the order they appear in the pane during game play (aside from the exceptions that Pixie already pointed out/explained). So, if you want them to be in a particular order, then you need to add or write/code them in the order that you want, unless you want (aka: can, have the ability) to work with the underlying code, and create your own sorting functions..., or I think you can work also with the user-level code directly and sort+add them in the order you want via using scripting (to add them in the order you want).
-------
if you want to delve into detail in how the built-in 'statusattributes' String Dictionary Attribute works:
viewtopic.php?f=10&t=5387&p=37393&hilit=statusattributes#p37375and/or about Attributes in general:
viewtopic.php?f=18&t=5559ask, if you got any questions or need any help.