Alphanumerical lists are sortable by alphabet and number, obviously, but if you have a list where each entry begins with a different punctuation mark (or any other kind of non-alphanumeric character), is there a similar standardised ordering method for them?
I imagine, for example, that a comma will come before whatever this is: ¦
I just tested an A-Z sort in Google Sheets where each cell was a different punctuation mark, and it seemed to rearrange what I’d entered into some sort of order, but is this order shared universally? Is there a global Unicode-compliant ordering method everyone uses?
Cheers!
CountVon@sh.itjust.works 6 months ago
There is a Unicode Technical Standard for this, called the Unicode Collation Algorithm. Whether everyone uses it, I can’t say. As it says on the linked page:
So in other words it’s possible to conform to the Unicode Standard without adhering to the Unicode Collation Algorithm.
elmicha@feddit.de 6 months ago
The vertical bar (pipe) and broken bar are not the same symbol. Wikipedia has a whole section about it (“Solid vertical bar versus broken bar”). Only the pipe character can be used for pipes in Linux/Windows/Mac terminals.
RegalPotoo@lemmy.world 6 months ago
This is the technically correct answer, and like lots of things is waaaaay more complicated than you’d expect.