I know this problem something to do with sort and collation and string comparison vs numeric only strings, but I can't fathom out the details of it.
Globals are multidimensional sparse arrays which are stored in InterSystems Data Platform. Everything in InterSystems Products is stored in Globals: Classes, Tables, Documents, Code.