Added a sorting function to (more) properly sort freeform inscription ids.