Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have issue on sort listing that have value with string and text for example;
1.0m, 2.0m, 4.0m,8.0m, 10.0 m, others,218k, 512k.
I want the listing to sort like
218k
512k
1.0m
2.0m
4.0m
8.0m
10.0m
others
You may try using sort by expression :
If(Index(Value, 'm'),Purgechar(Value,'m')*1000000, If(Index(Value, 'k'),Purgechar(Value,'k')*1000, 10e10))
You want this in script? Or front end?
Hi,
I would suggest to assign numeric values for that text that needs to be sorted. This can be done by creating a separate field based on the values in the text field.
Use this numeric field in Expression in Sort tab in front end.
You may try using sort by expression :
If(Index(Value, 'm'),Purgechar(Value,'m')*1000000, If(Index(Value, 'k'),Purgechar(Value,'k')*1000, 10e10))
thank you. that's great!