From 70171bea52da2ddcda320d95cb78803446dec4cb Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 11 Feb 2006 13:29:27 +0000 Subject: [PATCH] changed to natural sorting --- lam/lib/lists.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index f1874c06..4133e658 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -252,10 +252,10 @@ class lamList { if (!$sort) $sort = strtolower($attr_array[0]); if ($sort != "dn") { // sort by first attribute with name $sort - return strcmp($a[$sort][0], $b[$sort][0]); + return strnatcmp($a[$sort][0], $b[$sort][0]); } else { - return strcmp($a[$sort], $b[$sort]); + return strnatcmp($a[$sort], $b[$sort]); } }