hey kiddies
what I'm looking to do is this:
say i have a multidimensional array like so:
code:
[0] => {
['name'] => "Baby, Please Don't Go"
['artist'] => {
[0]=> "AC/DC"
}
}
[1] => {
['name'] => "Tequila"
['artist'] => {
[0] => "A.L.T. and The Lost Civilization"
}
}
[2] => {
['name'] => "Show You Love Me"
['artist'] => {
[0] => "A.K. Soul"
[1] => "Jocelyn Brown"
}
}
[3] => {
['name'] => "Dog Eat Dog"
['artist'] => {
[0] => "AC/DC"
}
}
How can I get it to sort by a specific key, for example the first artist key, alphabetically so it ends up like this:
code:
[0] => {
['name'] => "Baby, Please Don't Go"
['artist'] => {
[0]=> "AC/DC"
}
}
[1] => {
['name'] => "Dog Eat Dog"
['artist'] => {
[0] => "AC/DC"
}
}
[2] => {
['name'] => "Show You Love Me"
['artist'] => {
[0] => "A.K. Soul"
[1] => "Jocelyn Brown"
}
}
[3] => {
['name'] => "Tequila"
['artist'] => {
[0] => "A.L.T. and The Lost Civilization"
}
}
I hope that is clear enough lol i hope it's possible
btw its in PHP