TL;DR: This is not a cryptographic construction. It is a pragmatic engineering compromise for applications where encrypted storage is required but approximate alphabetical ordering is still useful. I sort encrypted strings using an external index: the sum of weighted Unicode code points for the...
Source: [Dev.to](https://dev.to/artabramov/sorting-encrypted-strings-with-a-leaked-order-index-2dc4)