fixed a rare case where we have >10 constants: sort 'C10' and 'C1' and 'C2'