Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Custom sort list box

Hi,

I have a list box created with an expression =[Product ID] & ' - ' & [Product Description] that has values like

001 - abc

123 - bcs

234 - 276

I want to sort the list box by the product Description in ascending order. Kindly suggest!

Thanks!

1 Solution

Accepted Solutions
sunny_talwar

Try this

Rank(Only({1} [ProductDescription]))

With Descending sort

Capture.PNG

View solution in original post

13 Replies
sunny_talwar

May be try a sort expression like this

Only({1} [Product Description])

and select ascending

Not applicable
Author

Did not work

sunny_talwar

Would you be able to share a sample where this isn't working?

Not applicable
Author

I have attached a sample.

vishsaggi
Champion III
Champion III

Can you do like

= ProductDescription & '-' & [Product ID]

Then Sort tab -> Check Text - A-Z.

Will that work?

Not applicable
Author

Does not work

sunny_talwar

Try this

Rank(Only({1} [ProductDescription]))

With Descending sort

Capture.PNG

Not applicable
Author

Thank you Sunny. This is correct!

vishsaggi
Champion III
Champion III

Thanks Sunny, its been long go I have used something like Rank in sort. Thanks for refreshing memory. 🙂