# Python Plugin: Decorator Ordering

**URL:** https://discourse.paraview.org/t/python-plugin-decorator-ordering/7813
**Category:** Development
**Tags:** python
**Created:** [August 12, 2021, 6:48pm UTC](https://discourse.paraview.org/t/python-plugin-decorator-ordering/7813 "2021-08-12T18:48:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jared\_Blanchard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jared_blanchard/32/7174_2.png) [@Jared\_Blanchard](https://discourse.paraview.org/u/Jared_Blanchard)
#### Post date: [August 12, 2021, 6:48pm UTC](https://discourse.paraview.org/t/python-plugin-decorator-ordering/7813/1 "2021-08-12T18:48:50Z")

</div>

I’ve noticed when I add decorators in a plugin, they do not appear in the same order they appear in the code. Is there a way to determine the ordering of the decorators, maybe some sort of priority variable?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [August 12, 2021, 6:54pm UTC](https://discourse.paraview.org/t/python-plugin-decorator-ordering/7813/2 "2021-08-12T18:54:07Z")

</div>

Unfortunately, no. AFAIK, the methods in Python are kept in unordered map so I found the method order keeps on changing each time the module is imported.

The only way is to use `xml` at the proxy level and then order the properties the way you want in the XML itself. But that forces you to write the entire XML manually.
