diff MoinMoin/macro/__init__.py @ 1449:e219092e1a0d

a few small fixes to get misc things working with xapian
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 21 Aug 2006 19:03:20 +0200
parents b65614f8a393
children a4f0632414da
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py	Mon Aug 21 18:16:15 2006 +0200
+++ b/MoinMoin/macro/__init__.py	Mon Aug 21 19:03:20 2006 +0200
@@ -280,8 +280,7 @@
         # Return a title search for needle, sorted by name.
         # XXX: what's with literal?
         results = search.searchPages(self.request, needle,
-                titlesearch=1, case=case)
-        results.sortByPagename()
+                titlesearch=1, case=case, sort='page_name')
         return results.pageList(self.request, self.formatter, paging=False)
 
     def _macro_InterWiki(self, args):