I am not (yet
) very good on RegExp, so can anyone help me sorting an array using RegExp?
a = new Array()
a[0] = 'b';
a[1] = '1';
a[2] = 'a';
a[3] = '2';
I need to change the order in array so, after the sorting, I'd like to have the array in normal sorting (number-alphabetical)
a[0] = '1';
a[1] = '2';
a[2] = 'a';
a[3] = 'b';

a = new Array()
a[0] = 'b';
a[1] = '1';
a[2] = 'a';
a[3] = '2';
I need to change the order in array so, after the sorting, I'd like to have the array in normal sorting (number-alphabetical)
a[0] = '1';
a[1] = '2';
a[2] = 'a';
a[3] = 'b';
Comment