The first array is indexed, the sub arrays are named
I can see how to sort indexed arrays but how on earth do I sort the arrays, based on the value of string:
Code: Select all
arrayName[index][string]Code: Select all
newTermineItems[0]["datum"]Code: Select all
newTermineItems[0]["datum"] = "7.12.04";
newTermineItems[1]["datum"] = "5.12.04";Code: Select all
newTermineItems[0]["datum"] = "5.12.04";
newTermineItems[1]["datum"] = "7.12.04";I turned the datum string in to a unix time stamp in case some users provide dates in other formats, I tested sorting timestamps and this worked great, on a single dim. array. How do I do this on a multi dim array? I need to move the whole
Code: Select all
newTermineItems[0]Code: Select all
newTermineItems[0]["datum"]