[svn r1561] Index sorting modification. xbelweb
authorfabien
Sat, 27 Sep 2003 03:37:42 -0400
branchxbelweb
changeset 27 212f1dc25b67
parent 26 17b0cd274530
child 28 f34f8083c1ed
[svn r1561] Index sorting modification.
TODO
index.py
--- a/TODO	Sat Sep 27 03:17:30 2003 -0400
+++ b/TODO	Sat Sep 27 03:37:42 2003 -0400
@@ -11,3 +11,4 @@
 * Add user session support.
 * Better unicode handling.
 * "add keyword to selection" function.
+* sort options
--- a/index.py	Sat Sep 27 03:17:30 2003 -0400
+++ b/index.py	Sat Sep 27 03:37:42 2003 -0400
@@ -63,7 +63,7 @@
     tproc.set("pagetitle", environ["REMOTE_USER"]+"'s XBELWeb")
     bk.sort(lambda x,y: cmp(x['name'],y['name']))
     tproc.set("Bookmarks", bk)
-    kw.sort(lambda x,y: cmp(x['keyword'],y['keyword']))
+    kw.sort(lambda x,y: -cmp(x['count'],y['count']))
     tproc.set("Keywords", kw)
     tproc.set("curl", curl)
     tproc.set("total", total)