I have an array in which the elements have like ID value "imm1", "imm2", "imm3"..."imm10"
the problem is that the sortOn method consider "imm10" lower than "imm2" because it consider 1 and 0 separatly. Then I tryed to write
immarray.sortOn("id", Array.NUMERIC)
but it don't apply the order correctly and I don't know why... maybe because my ID propriety have an alphanumeric value? Then, how I can sort i t correctly?
I want this result:
imm1
imm2
imm3
...
imm10
imm11
imm12
etc...