Homomorphic encryption is pretty wild, you can sort and search data without decrypting it.