I can not find information on how to sort by name if it contains special characters.
Database stores Željko Arambašić
name as Željko Arambašić
(latin1_swedish_ci
) and when sorted by name it comes of first because of starting Å
in DB, but is of course presented right in UTF-8
, just in wrong order place.
I found solution of MySQL that uses COLLATE
inside query but my MariaDB is reporting an error on that part.
I can not find anywhere a replacement for that. Please advise.
SELECT * FROM STRANKE ORDER BY str_naziv COLLATE xxx;