#11 Improve grid-sorting in tree-view for more than 100 grids

Mirko Bothe

I post this feature request in reply to Volker's comment on Bug Report "[ 2116812 ] Grid-Sorting in Tree View" (https://sourceforge.net/tracker/index.php?func=detail&aid=2116812&group_id=102728&atid=632652).

If you add more than 100 Grids to a Grid System in SAGA, the sorting in the tree-view gets messed up, because the Grids with the numbers 100-109 will be placed between the Grids with the Numbers 10 and 11, 110-119 between 11 and 12 and so on.


I would expect SAGA to display the Grids in this order:

1, 2, ..., 9, 10, 11, 12, ..., 98, 99, 100, 101, ..., 109, 110, 111, ...

Instead it displays the Grids in this Order:

1, 2, ..., 9, 10, 100, 101, ..., 109, 11, 110, 111, ..., 119, 12, ..., 98, 99

This probably happens because the Number of the Grid is added to the Name of the Grid and SAGA sorts by this String. It could be better to sort directly by the number, to only sort by the name without using the number, to add more leading 0 to the name or simply to display the Grids in the order they were added.

I did not check if this also happens with vector-datasets, tables or TINs as well, but if those datasets use the same code, it probably will.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks