Closed creativetags closed 5 years ago
Could we have a way to sort a query like:
User.all.order(:name, :asc)
In my case I'm using mysql_aes_new
I understand the SQL would look something like:
SELECT AES_DECRYPT(FROM_BASE64(name), "MYPASSPHRASE") AS name FROM users ORDER BY name ASC;
Could we have a way to sort a query like:
In my case I'm using mysql_aes_new
I understand the SQL would look something like: