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

Sorting of Buckets in a Listbox


Hi all ,

I created 'Volume; Buckets in a listbox using 'Class' function. It works fine .

The expression I used is : Replace(Class(VOLUME,10),'<= x <','to')

Here I got a problem at sorting . I was unable to sort it in Ascending order. Trust me I used all sorting options available in properties.

Any help would be appreciated.

Thanks in advance.

Best Regards,

Susvith

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I suggest that you use this expression in your list:

=Dual(Replace(Class(VOLUME,10),'<= x <','to'), Num(Class(VOLUME,10)))

Now you should be able to sort the list box using a numeric sort.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I suggest that you use this expression in your list:

=Dual(Replace(Class(VOLUME,10),'<= x <','to'), Num(Class(VOLUME,10)))

Now you should be able to sort the list box using a numeric sort.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks so much . Its working.


msteedle
Luminary Alumni
Luminary Alumni

You can probably skip the "Num" in the solution. The Class function returns a Dual value with an associated numeric value equal to the lower bound of each bucket.