I know almost nothing about CSQC, IQM or anything directly related to skeletal animation, so bear with my ignorance please. But why does this matter ? Aren't you referering to the bones names in your code anyway ? Or are you assuming in a non obvious way that pelvis has index 1, torso has index 2 and so on ?
EDIT: speel check
EDIT2: GAHHH! again, I'm terrible today