Hey, guys. I've been using a selection sort for sorting 1d arrays, but now i've got a 2d array with names and ids.
and i can't figure out how to change the algorithm to sort just the names and have the ids still attached to them such as:
yields
any help would be much appreciated.
Code:
string employee[name][id]
Code:
Smith, John 12 Q, Suzie 47 Ford, Henry 22
Code:
Ford, Henry 22 Q, Suzie 47 Smith, John 12
Comment