Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Sort array & keep corresponding array in sorted sequence

I have this case:

I have two arrays with the same number of elements; array 1 contains part numbers, array 2 contains quantities of the corresponding part number.

I want to sort the part # (alphanumeric) array & keep the corresponding quantity array "in synch".

Is there a php function that will do this or do I have to program the sort "manually"?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial