[MDEV-14127] ORDER BY COLLATE 'utf8mb4_german2_ci' ASC is inconsistent with DESC Created: 2017-10-25 Updated: 2017-10-31 Resolved: 2017-10-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 5.5.57 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Mitur Sakoda | Assignee: | Alexander Barkov |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
mysql Ver 14.14 Distrib 5.7.9, for osx10.9 (x86_64) using EditLine wrapper Connection id: 2358 |
||
| Description |
|
Sorting with COLLATE 'utf8mb4_german2_ci' gives inconsistent results with ASC vs. DESC, they are not the reverse of each other. The details should be clear from the example below.
|
| Comments |
| Comment by Elena Stepanova [ 2017-10-30 ] | |
|
The result is easily reproducible, but I'm not sure it's a bug. In german2 (German phone book order), 'ö' and 'oe' are synonyms, thus 'Goethe' and 'Göthe' are equal values and can be placed in any order. I'll leave it to the character set expert bar to confirm (or not). | |
| Comment by Alexander Barkov [ 2017-10-30 ] | |
|
This is not a bug. As Elena wrote, 'Goethe' and 'Göthe' are equal values. To change the mutual order of equal values, try this:
| |
| Comment by Mitur Sakoda [ 2017-10-31 ] | |
|
That worked. Thanks! |