changeset 1835:0fc52d861828

sort select options for data browser widget autofilters
author Johannes Berg <johannes AT sipsolutions DOT net>
date Mon, 26 Feb 2007 14:45:02 +0100
parents b3fe6f3eff1c
children ddfd8d5fa282 aed7438f264f
files MoinMoin/widget/browser.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/widget/browser.py	Mon Feb 26 14:40:42 2007 +0100
+++ b/MoinMoin/widget/browser.py	Mon Feb 26 14:45:02 2007 +0100
@@ -76,6 +76,9 @@
 
         # fill in the empty field we left blank
         unique[1] = self._empty
+        sorted = unique[3:]
+        sorted.sort()
+        unique = unique[:3] + sorted
         return '\n'.join([self._makeoption(item, item == value) for item in unique])
 
     def format(self):