Allocate ordinals in the order of the declarations in the spec file.