this post was submitted on 30 Sep 2024
473 points (98.4% liked)

Programmer Humor

19564 readers
643 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 39 points 1 month ago (1 children)

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.

[–] [email protected] 4 points 1 month ago (2 children)

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

[–] [email protected] 11 points 1 month ago (2 children)

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.

[–] [email protected] 4 points 1 month ago

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.

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

Im just gonna believe those are the correct codes. Thanks for the confirmation :)

[–] [email protected] 2 points 1 month ago (1 children)

Depends on how you define "letter", but they are definitively not alphabetical. They are ideographs.

[–] [email protected] 1 points 1 month ago

See the neighbouring comment