Feature request #15057

Allow custom value map widget sorting

Added by Andrew McAninch over 8 years ago. Updated almost 7 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:23000

Description

Currently the value map widget re-sorts the values alphabetically. Often I have values that have a logical/expected order that is not alphabetical. A check box to keep the order that they are entered in the widget properties dialog would be excellent.

History

#1 Updated by Matthias Kuhn over 8 years ago

  • Status changed from Open to Feedback

Does defining the keys (which are hidden from the UI) in a sortable format not work for you?

#2 Updated by Andrew McAninch over 8 years ago

That might work, but I'm not sure what you are asking. What keys and where can I define them?

#3 Updated by Matthias Kuhn over 8 years ago

  • Status changed from Feedback to Open

Sorry, I was confusing terminology.
In the Value Relation widget we have the terms Key => Value which conform to the terms Value => Description in the Value Map.

I can confirm the request as specified in the original text.

#4 Updated by Andrew McAninch over 8 years ago

Ahh I get it, thanks for clarifying. No that doesn't really work. For example, one field I'm working with is a stream classification system with letter codes(in expected order): 'S', F', 'Np', 'Ns', 'X' and 'U' as well as 'NOCH' and I need to use those codes as the key/"Value". My workaround right now is to add numbers in the "Description" column, so the user sees: '1) S', '2) F', etc which sort of works as a workaround but is also problematic since there is a slightly different(earlier) classification system that uses some of those numbers. Thanks,

#5 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#6 Updated by Jürgen Fischer about 7 years ago

  • Category set to Unknown

#7 Updated by Nyall Dawson almost 7 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Fixed in 3.0 - the value map respects the order that the values are defined in the widget config.

Also available in: Atom PDF