# SQL Tag XML output not in tag order

**URL:** <https://forum.inductiveautomation.com/t/sql-tag-xml-output-not-in-tag-order/11668>\
**Category:** Ignition\
**Created:** [May 14, 2016, 4:51am UTC](https://forum.inductiveautomation.com/t/sql-tag-xml-output-not-in-tag-order/11668 "2016-05-14T04:51:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qversa](https://avatars.discourse-cdn.com/v4/letter/q/35a633/32.png) [@qversa](https://forum.inductiveautomation.com/u/qversa)\
**Post date:** [May 14, 2016, 4:51am UTC](https://forum.inductiveautomation.com/t/sql-tag-xml-output-not-in-tag-order/11668/1 "2016-05-14T04:51:38Z")

</div>

Is there a way to get the SQL Tag export to XML to order by tag name? It would really make repetitive tag entry a lot easier. I’ve seen a Pytgon script in an earlier post that will sort it for you but this should really be a native feature (if it’s not already).

Also, I can’t determine what the XML output is actually sorted on?

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [May 14, 2016, 2:14pm UTC](https://forum.inductiveautomation.com/t/sql-tag-xml-output-not-in-tag-order/11668/2 "2016-05-14T14:14:31Z")

</div>

you should look into using the addTag and editTag functions. ive automated tag creation and editing using these tools and have cut the time spent on these tasks tremendously. I dont like repetitive!
