1) is already in the related PR
https://github.com/boundlessgeo/QGIS/commit/cae124acea62b3d387586e3c1619144a3c12b150,
btw more controls will be added on restrict SortOrder values.
2) hmmm... constructor start with the correct AscendingMode... someone
(a plugin or the core code or a bug) do
Hi Luigi,
Thanks for the detailed report. I think there are two different things
to fix
1. XML Loading: the static_cast should be accompanied by a validity check
2. Fix the reason for 158 ever appearing (might just be a default value
assigned to mSortOrder in qgsattributetableconfig.h)
Hi devs
***In short:
The sortOrder value in QgsProject section:
can be any value for some reason (e.g. flexibility for the future) or
it is a bug?
I would ask to especially to Nyall that git blames is the author of
this section: