Subversion Repositories eFlore/Applications.cel

Rev

Rev 2172 | Rev 2186 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2172 Rev 2185
Line 532... Line 532...
532
		$nb_slashs_a = substr_count($a['chemin'], '/');
532
		$nb_slashs_a = substr_count($a['chemin'], '/');
533
		$nb_slashs_b = substr_count($a['chemin'], '/');
533
		$nb_slashs_b = substr_count($a['chemin'], '/');
534
		$cmp = 0;
534
		$cmp = 0;
Line 535... Line 535...
535
 
535
 
536
		if ($nb_slashs_a == $nb_slashs_b) {
536
		if ($nb_slashs_a == $nb_slashs_b) {
537
			$cmp = strcmp($a['chemin'], $b['chemin']);
537
			$cmp = strcasecmp($a['chemin'], $b['chemin']);
538
		} else {
538
		} else {
539
			$cmp = ($a['chemin'] > $b['chemin']) ? +1 : -1;
539
			$cmp = ($a['chemin'] > $b['chemin']) ? +1 : -1;
540
		}
540
		}
541
		return $cmp;
541
		return $cmp;