Sort Array

Hey guys,

I brought in a variable from php that looks like this:

variable=string1,string2,string3,string4,string

So I created an array with it like this:

var theArray:Array = vars.variable.split(",");

Here is my problem. It rearranges the order. In my script string1 - string5 that you see in the above example are something different but still string with no commas other that at the end of each string.

So is there any was to split the strings into an array and retain the original order?