Code

Added sorting to revert snapshot dialog
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Jun 2006 10:12:20 +0000 (10:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Jun 2006 10:12:20 +0000 (10:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3855 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_SnapShotDialog.inc

index dcac0b80c72558c5aa059f1d8aa1d538c80d4f0d..5d9149dbc6426672bc78e3f2caeb35cd8e9a1d27 100755 (executable)
@@ -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));
                }