Skip to main content
Solved

Is it possible to sort a column on it's database value instead of the element translation?


Forum|alt.badge.img+14
In some cases you want to sort a column on the database value instead of the value of the element translation. This will be faster (index) and is sometimes the order you want (e.g. months).
I know there was a ini. -parameter once, but I don't want this for all columns.
Is it possible to do this for one column? For example based on a domain setting?

Best answer by Andre te Raa

Hi Robert Jan,
I use an expression column for this, but now I have to do this for each table.
And still when I sort on the 'display' column, it will sort in alphabetical order.
I also could add a number to the translation and force the order, but that doesn't look nice.
It would be great if we could specify this once (for a domain?).
View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

5 replies

Robert Jan de Nie
Thinkwise blogger
Forum|alt.badge.img+5
Perhaps you can add a hidden column containing the same data (as a display expression) and sort on it?

Forum|alt.badge.img+14
  • Author
  • Captain
  • 110 replies
  • Answer
  • April 15, 2019
Hi Robert Jan,
I use an expression column for this, but now I have to do this for each table.
And still when I sort on the 'display' column, it will sort in alphabetical order.
I also could add a number to the translation and force the order, but that doesn't look nice.
It would be great if we could specify this once (for a domain?).

Robert Jan de Nie
Thinkwise blogger
Forum|alt.badge.img+5
I agree, that would be a good idea!

Moller Toma
Captain
Forum|alt.badge.img+11
Andre te Raa wrote:
Hi Robert Jan,
I use an expression column for this, but now I have to do this for each table.
And still when I sort on the 'display' column, it will sort in alphabetical order.
I also could add a number to the translation and force the order, but that doesn't look nice.
It would be great if we could specify this once (for a domain?).


@Andre te Raa Have you put this in as an idea yet?

Forum|alt.badge.img+14
  • Author
  • Captain
  • 110 replies
  • May 6, 2019
@Moller Toma not yet, but I will.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings