--- yagtd.py.orig	2009-03-15 20:47:48.000000000 -0400
+++ yagtd.py	2009-03-15 20:55:32.000000000 -0400
@@ -721,7 +721,19 @@
         for t in tasks:
             print self._disp(t)
 
-    do_listpri = do_sort
+    def do_listpri(self, regexp):
+        """Sort tasks matching given regexp:
+        GTD> listpri [regexp]"""
+
+        todos = [ t for t in self.todo.sort() if t['complete'] < 100 ] 
+
+        # Then, retrieve the pattern (into full desc tasks)
+        expr = re.compile(regexp, re.IGNORECASE)
+        tasks = [ t for t in todos if expr.search(self._dump_line(t)) ]
+
+        for t in tasks:
+            print self._disp(t)
+
     
     def do_order(self, nb_attr):
         """Order #nb tasks by context/project/status/reference (and priority):
