1
Reply

Selection sort list of string array

Robin Drakenhufvud

Robin Drakenhufvud

Sep 30 2017 6:02 AM
218
Lets say i have a list of string arrays like ["bbb", "eee", "hhh"], ["ccc", "fff", "iii"], ["aaa", "ddd", "ggg"]
 
How can i sort the list so that its alphabetical after the first element in each array Like:  ["aaa", "ddd", "ggg"], ["bbb", "eee", "hhh"], ["ccc", "fff", "iii"] with selection sort?

Answers (1)