Use another strategy to keep attribute ordering on writing xml files
This patch uses code mentioned at https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml and does not have the issues of QHash.
This patch uses code mentioned at https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml and does not have the issues of QHash.