[ https://issues.apache.org/jira/browse/GUACAMOLE-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17951424#comment-17951424 ]
Eugen Hartmann commented on GUACAMOLE-2069: ------------------------------------------- A solution suggested by Michael Jumper: {noformat} 1. There are numerous cases where sorting is actively producing confusing order (anything numeric, which is quite common) 2, In other cases, the ENUM field options are already listed in the order that's most logical, except RDP, where: - The failsafe option for server-layout should be last (it's an option of last resort and even then is typically not the best choice) - resize-method should be [ "", "display-update", "reconnect" ] - security should be [ "", "any", "nla", "rdp", "tls", "vmconnect" ] (which matches the sorted order) 3. So, I'd say we should: - Remove the orderBy for the selectField template. - Correct the ordering of enum values in rdp.json per above.{noformat} > Sorting breaks correct order of enum items > ------------------------------------------ > > Key: GUACAMOLE-2069 > URL: https://issues.apache.org/jira/browse/GUACAMOLE-2069 > Project: Guacamole > Issue Type: Bug > Components: guacamole > Affects Versions: 1.5.5 > Reporter: Eugen Hartmann > Priority: Minor > > Even if you specify items of an enum in the correct order, for example: > guacamole-client/blob/main/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/ssh.json > {code:java} > "options" : [ "", "262144", "1048576", "10485760" ] {code} > the order will be broken by sorting in a template: > guacamole/src/main/frontend/src/app/form/templates/selectField.html > -- This message was sent by Atlassian Jira (v8.20.10#820010)