I have an array looking like this:
markerArray[i] = [i, title, cat];
this array is within a for loop adding the content dynamic
so the result could be something like this:
markerArray[0] = [0, A title, A];
markerArray[1] = [1, A title new, B];
markerArray[3] = [3, A title, E];
markerArray[4] = [4, A title, A];
So my question is how can I or is it possible to sort the array so that the output would be based on A,B C etc or title or whatever taken from inside the array like this, note that the last (category) is in alphabetic order now:
markerArray[0] = [0, A title, A];
markerArray[1] = [4, A title, A];
markerArray[2] = [1, A title new, B];
markerArray[3] = [3, A title, E];
Is this even possible?