Sort namespaces

How did @eilon let this ship with the namespaces unsorted. He's growing soft in his old age. :trollface: