From 62a2807a44d4a0a4c7439ed2e25735b76c7064a2 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 Jun 2006 10:12:20 +0000 Subject: [PATCH] Added sorting to revert snapshot dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3855 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_SnapShotDialog.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_SnapShotDialog.inc b/plugins/admin/systems/class_SnapShotDialog.inc index dcac0b80c..5d9149dbc 100755 --- a/plugins/admin/systems/class_SnapShotDialog.inc +++ b/plugins/admin/systems/class_SnapShotDialog.inc @@ -58,7 +58,8 @@ class SnapShotDialog extends plugin $res[base64_encode($entry['dn'])] = $date." - ".$data; } - $smarty->assign("SnapShots",$res); + natcasesort($res); + $smarty->assign("SnapShots",array_reverse($res)); $smarty->assign("CountSnapShots",count($res)); } -- 2.30.2