tags:

views:

21

answers:

0

I have an array of passwords in flash 8. They are numeric, but some contain leading zeroes to pad them out, and so the field is a character field.

When I try this code

if (objSORT.mySortOrder == -1) { aMYARRAY.sortOn("password", Array.NUMERIC | Array.DESCENDING); } else { aMYARRAY.sortOn("password", Array.NUMERIC); }

This does NOT sort in a numeric manner. I assume it is because the field is a character field.

Is there any way around this?

Many thanks

Dave