Salut,
Ca fait 1 semaine que je ne trouve pas la réponse: comment trier un tableau multi sur un élément, sans perdre la relation avec les autres éléments du tableau.
Ex:
array(4) {
["AdherentsId_ext"]=> array(3) {
[0]=> string(4) "2128"
[1]=> string(3) "384"
[2]=> string(4) "1754" }
["ParticipationRole"]=> array(3) {
[0]=> string(11) "Participant"
[1]=> string(11) "Participant"
[2]=> string(11) "Participant" }
["AdherentsPrenom"]=> array(3) {
[0]=> string(5) "Bruno"
[1]=> string(7) "Nicolas"
[2]=> string(5) "bruno" }
["ClubsId_ext"]=> array(3) {
[0]=> string(2) "19"
[1]=> string(1) "2"
[2]=> string(2) "19" }
}
Je voudrai trier sur ClubsId_ext. J'ai cherché avec usort(), avec array_mulitsort(), mais j'arrive pas à garder la cohérence du tableau après le tri
Est-ce qu'un bonté d'âme peu m'aider?
Partager