INM-6 / python-odmltables

An interface to convert odML structues to and from table-like representations, such as spreadsheets
BSD 3-Clause "New" or "Revised" License
5 stars 10 forks source link

Sorting of odml properties not always wanted #103

Open morales-gregorio opened 5 years ago

morales-gregorio commented 5 years ago

Sorting is enforced in the generation of an odml document, but I would like to keep the order that I wrote in my original xls file.

I would suggest adding a sorting option to the

odml_table.load_from_xls_table(self, load_from)

function. such that:

odml_table.load_from_xls_table(self, load_from, sort_odml=False):
    ...
    if sort_odml:
        self._odmldict = self._sort_odmldict(self._odmldict)

The same problem arises when using a csv file as a source, the same option could be added to both functions.

I do not know what problems this might cause to the gui.