I have a field title
of type json that contains translations for different locales. It looks like
{'en'=>'Title', 'uk'=>'Заголовок'}
I'm trying to order records by a translation
select id, slug, title->>'$.uk' as locale_title from blog_posts
order by locale_title
It works for en
locale with Latin symbols but for uk
(Ukrainian) locale with Cyrillic symbols I get the wrong order like і, а, б, я
.
For other text fields (not json) ordering works as expected а, б, і, я
Additional info
Mysql version: 5.7.25
database collation: 'utf8mb4_unicode_ci'