macchina-io / macchina.io

macchina.io EDGE is a powerful C++ and JavaScript SDK for edge devices, multi-service IoT gateways and connected embedded systems.
https://macchina.io
GNU General Public License v3.0
512 stars 152 forks source link

Sorting data in Settings webUI of macchina.io #99

Closed zaleksa closed 2 years ago

zaleksa commented 4 years ago

Actual behavior of Settings bundle in macchina.io is that all data is sorted in alphabetical order.

Is it possible to avoid this, i.e. to sort the data as it is in the property file?

I am using changed Settings bundle to load and save settings from xml file, so it is important for me to keep order in xml fajl. Now, the data, which are sort in xml file in some logical order, is loaded in webUI in alphabetical order, and saved also in alphabetical order in xml file, which is not behavior that I expect.

Thanks in advance,

Aleksandar

obiltschnig commented 4 years ago

This is not possible, due to the way the Settings app works. Btw, the settings bundle does not work with an XML file, but with a .properties file.