Avatar of xiaoyunwu
Flag for United States of America

asked on 

sort an array with float and string

I have a array: 0, a, b, 1.2, 0.2, c
I'd like to sort them by number first, then by alphabetic
result should be:
0, 0.2, 1.2, a, b, c

How can I do this?

Avatar of undefined
Last Comment

8/22/2022 - Mon