Bonjour,
J'arrive pas a faire fcter mon trie :-(
Le but etant de trier via la premiere colonne puis la derniere

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
//Mon txt a trier
162|116|produit|monimage.jpg|400|
157|116|produit|monimage.jpg|400|
162|670|produit|monimage.jpg|177|
157|401|produit|monimage.jpg|200|
157|490|produit|monimage.jpg|205|
157|586|produit|monimage.jpg|457|
161|23|produit|monimage.jpg|201|
162|483|produit|monimage.jpg|198|
162|490|produit|monimage.jpg|205|
162|670|produit|monimage.jpg|177|
 
 
//mon fichier php
$Tab=file($GoFile);
foreach ($Tab as $key => $Row) {
        $Chps=explode("|",$Row); $Data[$key]=array($Chps[0],$Chps[1],$Chps[2],$Chps[3],$Chps[4],$Chps[5]);
	$IdA[$key]  = $Chps[0];
	$WImg[$key] = $Chps[4];
}
	array_multisort($IdA, SORT_ASC, $WImg, SORT_ASC, $Data);

Il me fait l'erreur :
Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag


Je comprend pas :-( (c'est peut etre qu'il est trop tard, mais ca me gonfle...)

Merci,
Guigo