I've seen things like this:
sorting arrays
and this
also sorting arrays
But I'm just not sure how to relate that to my code.
I have 4 arrays; three of which are numbers to be sorted in ascending and descending, but what is really stumping me is the fourth array which is all names and needs to be sorted alphabetically.
So how would I alter any of these past codes, or make a new one that would use the invokation of these 4 arrays
var custName = new Array("Smith, Al","Toms, Andy","Jones, Zack","Vargas, Eddie","Donner, Alice","McMullen, Jessie","Nevins, Carol","Stark, Howard","Neeland, Franny","Boxby, Amos");
var mnthCharge = new Array(140.00, 42.00, 18.00, 18.00, 36.00, 140.00, 42.00, 24.00, 140.00, 24.00);
var pastDueAmt = new Array(0, 0, 84.00, 36.00, 0, 18.00, 42.00, 42.00, 96.00, 0);
var dayPastDue = new Array(0, 0, 60, 60, 0, 30, 90, 30, 120, 0);
Or at least the first one to be alphabetical.