Univention Bugzilla – Bug 31219
configurable sort types for grid columns
Last modified: 2023-03-25 06:41:18 CET
It would be nice, if the sort types were configurable for grid columns. For example in the dns zones, reverseZones could be sorted numerical instead of alphabetical: alphabetical (current behaviour) " 10 101 102 20 " numeric (wished) " 10 20 101 102 " See also http://forum.univention.de/viewtopic.php?f=11&t=2568&p=8787
This seems to be a problem with the syntax as the values are handed over to the UMC frontend as string. I am not sure whether there are any syntax types that are internally converted to a number, I guess not. Then this should be done to fix the problem.
(In reply to Alexander Kläser from comment #1) > This seems to be a problem with the syntax as the values are handed over to > the UMC frontend as string. I am not sure whether there are any syntax types > that are internally converted to a number, I guess not. Then this should be > done to fix the problem. We explicitly call syntaxclass.to_string(...) and always hand over the attributes as strings. I fixed the initial example in some errata update. Nevertheless it would really be great if one could specify e.g. sortType: 'numerical' in the column definitions of umc.widgets.Grid.
*** This bug has been marked as a duplicate of bug 44361 ***
OK: sorting of reverse zones in the tree is correct now. OK: duplicate