Pages: 1
Print
Author Topic: Table sorting - case sensitivity issue  (Read 1224 times)
davidwag
Member

Posts: 2


« on: July 27, 2015, 09:59:03 PM »

Xmetal Author Enterprise 8 - sorting a table where some items begin with a capital letter, some with lowercase, and some with two initial capital letters causes sorting errors (first all init caps are sorted, then init lowercase; an entry with two init caps would come before an entry without, e.g., "MS" comes before "Ma". Apparently this is normal "ASCII" sorting but it isn't normal human sorting. I tried selecting "natural" but it didn't help.

Ideas?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2575



WWW
« Reply #1 on: July 28, 2015, 07:21:19 PM »

The table sorting uses Unicode character order (so you are sort of correct in assuming ASCII).

One example that the "natural" sort gives you is a1, a2, a10, a37, a100, a200 (whereas the text sort would give you a1, a10, a100, a2, a37).

I'll discuss the possibility of implementing something language-specific with the development team. I think we can assume that English would be the priority (at least for any first pass of such a feature) but even English has different rules for sorting depending on who is asking (and sometimes on the content -- think names starting with Mc and Mac for example) so I think anything that is implemented would likely need to be flexible and configurable.

Then there are other languages too of course: https://en.wikipedia.org/wiki/Alphabetical_order#Language-specific_conventions
Logged
Pages: 1
Print
Jump to: