Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Sheets strings comparator

Could anyone tell what exact strings comparing algorithm is used in Google Sheets?

I try to use an array of data sorted by Google Sheets and seems that it's not usable for binary search. For example, Google Sheets thinks that

0(48) > |(124)

-(45) > _(95)

and so on.

Thanks in advance!

like image 617
Orange Avatar asked May 01 '26 03:05

Orange


1 Answers

The problem is solved. I had to create a map of ASCII -> Google Sheet indices and apply it in my own comparator. Thanks to @I'-'I for sharing "possible duplicate" to Google Sheets character sort order

like image 113
Orange Avatar answered May 04 '26 09:05

Orange



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!