Bug 31219 - configurable sort types for grid columns
configurable sort types for grid columns
Status: CLOSED DUPLICATE of bug 44361
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.1
Other Linux
: P4 minor (vote)
: ---
Assigned To: Jürn Brodersen
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-26 16:02 CEST by Tim Petersen
Modified: 2023-03-25 06:41 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2013-04-26 16:02:39 CEST
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
Comment 1 Alexander Kläser univentionstaff 2013-05-03 11:25:11 CEST
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.
Comment 2 Florian Best univentionstaff 2016-05-23 14:52:52 CEST
(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.
Comment 3 Florian Best univentionstaff 2017-04-24 14:17:39 CEST

*** This bug has been marked as a duplicate of bug 44361 ***
Comment 4 Florian Best univentionstaff 2017-04-24 14:18:17 CEST
OK: sorting of reverse zones in the tree is correct now.
OK: duplicate