479
Swift knows something (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] dabu@lemmy.world 24 points 2 years ago

I wonder if it has anything to do with alphabetical order... No, that's not it

[-] marcos@lemmy.world 39 points 2 years ago

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.

[-] unexposedhazard@discuss.tchncs.de 4 points 2 years ago

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

[-] skulblaka@sh.itjust.works 11 points 2 years ago

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.

[-] davidgro@lemmy.world 4 points 2 years 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.

[-] unexposedhazard@discuss.tchncs.de 1 points 2 years ago* (last edited 2 years ago)

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

[-] marcos@lemmy.world 2 points 2 years ago

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

[-] unexposedhazard@discuss.tchncs.de 1 points 2 years ago

See the neighbouring comment

[-] Venator@lemmy.nz 10 points 2 years ago* (last edited 2 years ago)

Maybe try adding ๐Ÿฃ, ๐Ÿฅ, ๐Ÿค and ๐Ÿ— to the array and see if it still has the correct order.

[-] superkret@feddit.org 14 points 2 years ago

I wouldn't even be surprised if the Unicode consortium had put those in the correct order โ€“ as an Easter egg.

[-] Sabre363@sh.itjust.works 4 points 2 years ago

Evolution turned out wildly different in an alternate universe where E comes before C except after I

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

Programmer Humor

31683 readers
1925 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 3 years ago
MODERATORS