From: hickert Date: Wed, 21 Jun 2006 10:12:20 +0000 (+0000) Subject: Added sorting to revert snapshot dialog X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=62a2807a44d4a0a4c7439ed2e25735b76c7064a2;p=gosa.git Added sorting to revert snapshot dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3855 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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)); }