PDA

View Full Version : alphabetizing inconsistencies question



Morenu
March 1st, 2025, 14:08
FG seems to use different alphabetizing rules in different areas. (more of an observation than an issue)

I have noticed this in several places, but will give the latest examples as it is what I have.

working in PFrpg.

NPC window. D'ziriak creature is the first alphabetically.
ASSET window, it is the last (so far, after Dragons as I haven't done all of D yet)

NPC window: "Cyclops" comes before Cyclops, Great and other Cyclops types
Asset window: "Cyclops" is listed last behind any Cyclops, xxx

as I said, not a big deal but as I do the Bestiary in alphabetical order I am noticing it a lot. When I was working on my Feats extension (also an alphabetical situation) I know I had similar issues between different windows as well.

Griogre
March 1st, 2025, 17:25
That sounds like the difference between a character sort and a modified alpha sort. FGU generally uses character sorting which is basically the number value of each character in unicode. That's why the " is before the C. The double quote has a lower code, 34, than the capital C which is 67. I've never checked, but it sounds like unity is using a different sort on asset (file) names. The OSs like to use a modified alpha sort - natural sort order - to placate those humans; so it seems like the Unity engine either calling the OS sort on files or is doing something different from a character sort.

Edit: To follow on a bit more. Weird characters in file names use to cause trouble on older operating systems and so do non alpha-numeric characters in XML, so it's also possible that is in play as well. When I wrote my FG XML parser I just threw out non-alpha numeric characters for element names in monster lists which could have a similar effect as well.

Edit 2: Yeah, I've attached an example where the -' characters are causing a different sort on different lists.