When it comes to the Norwegian and Danish Alphabets, the proper order of the characters is as follows:
- Æ
- Ø
- Å
However, MatSort follows the Unicode order for these characters:
- Å (197)
- Æ (198)
- Ø (216)
Is there a way to implement collation to address this issue?
Check out this stackblitz with a table that can be sorted by "No." and "Name":
https://stackblitz.com/edit/angular-an1uqc-8mdqns
Here's the data in the table:
{position: 1, name: 'Alpha', description: 'Test123'},
{position: 2, name: 'Bravo', description: '0'},
{position: 3, name: 'Charlie', description: 'aaa'},
{position: 4, name: 'Delta', description: ''},
{position: 5, name: 'Echo', description: '1'},
{position: 6, name: 'Foxtrot', description: '2'},
{position: 7, name: 'ÆGamma', description: ''},
{position: 8, name: 'ØHotel', description: '3'},
{position: 9, name: 'ÅIndigo', description: '1000'},
];
According to the Norwegian/Danish alphabet, the correct sorting order for the last three items (ÆGamma, ØHotel, and ÅIndigo) should be:
- ÆGamma
- ØHotel
- ÅIndigo
Yet, MatSort uses Unicode numbers for these characters and sorts them in this manner:
- ÅIndigo (197)
- ÆGamma (198)
- ØHotel (216)
Thank you for taking the time to read this! :]