please suggest elegant ways to sort an array by data types. For example, sorting the following array:
testArray = ["1", "5", 4 , 8, [1,2,3], {test:"test"}, [1,3,4], {test2:"test2"}, 6, "test"]
to appear like that:
["1", "5", "test", 4, 6, 8, [1,2,3], [1,3,4], {test:"test"}, {test2:"test2"}]
The actual order of the datatypes doesn't really matter.
Thanks!