--- dotclear-2.1.5/plugins/widgets/index.php	2008-11-01 00:43:12.000000000 +0100
+++ www/plugins/widgets/index.php	2009-02-13 13:12:45.000000000 +0100
@@ -163,7 +163,17 @@
 '<fieldset><legend>'.__('Available widgets').'</legend>'.
 '<div id="widgets">';
 
-foreach ($__widgets->elements() as $w) {
+$elts = $__widgets->elements();
+function cmp($a, $b) {
+	$c = $a->name();
+	$d = $b->name();
+	if ($c == $d) {
+		return 0;
+	}
+	return ($c < $d) ? -1 : 1;
+}
+usort($elts, "cmp");
+foreach ($elts as $w) {
 	echo
 	'<div>'.form::hidden(array('w[void][0][id]'),html::escapeHTML($w->id())).
 	'<p class="widget-name">'.form::field(array('w[void][0][order]'),2,3,0,'hideControl').' '.
@@ -297,4 +307,4 @@
 }
 ?>
 </body>
-</html>
\ Pas de fin de ligne à la fin du fichier.
+</html>
