Swift knows something

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev – 463 points –
37

You are viewing a single comment

I'd say that "alphabet" has no relation to the things on that string.

But yeah, it's the Unicode Consortium that knows something about it, not Swift.

That emoji is also really just some letters is it not? So it probably is alphabetical.

Yes, but it isn't just :chicken: or something like you'd see in Discord. It's unicode, so it's actually U+1F414. Egg is U+1F95A.

And indeed 1F414 is a lower (hexadecimal) number than 1F95A, so in the absence of other criteria I'm sure in most systems it would sort first.

They might not know the name for the extension of alphabetical order to all characters in Unicode (and neither do I) but it's logical to associate it with alphabetical since it's similar in concept.