New Bug Encountered: Sorting a SPLIT() list is not as expected

Consider the sample text string below:

 **`SomeText, 123.124, 1513.56.338, 6BT6613, SA 415+416'**

If I use the expression SORT(SPLIT([Sample Text], ",")) to sort ascending, the list order is:

 `6BT6613 , 123.124 , 1513.56.338 , SA415+416 , SomeText`

But, If I use the expression SORT(SPLIT([Sample Text], ","), true) to sort descending, the list order is:

 `SomeText , SA415+416 , 6BT6613 , 1513.56.338 , 123.124`

Note the placement of the value โ€œ6BT6613โ€

I know that when sorting non-homogenous data some unexpected things can happen. But in this case I canโ€™t think of any reason why the sorting would be like this!!

3 2 442
2 REPLIES 2

Hi. In your first result, I donโ€™t get the same sort. Wondering if this is database specific. Using your text of โ€œSomeText, 123.124, 1513.56.338, 6BT6613, SA 415+416โ€ (I removed the ** and also noticed your single quotes donโ€™t match, one is curly )

I get the following for both ASC and DESC. I am using google sheets, and I have marked my virtual fields as โ€œelement type textโ€:

Interesting! I went back to my tester app and basically re-synced, and now I show the order I expect. I did not change anything with those formulas. I did delete some other virtual columns that were not important but surely that wouldnโ€™t have made a difference.

Iโ€™m using the same string input from my google sheet.

Could someone have already addressed this issue? Maybe as part of work unrelated to this bug?

No matterโ€ฆit seems to be addressed now!!!

Top Labels in this Space