projects
/
hermes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aae004c
)
Sort contacts when showing results.
author
Andrew Flegg
<andrew@bleb.org>
Wed, 9 Jun 2010 23:05:33 +0000
(
00:05
+0100)
committer
Andrew Flegg
<andrew@bleb.org>
Wed, 9 Jun 2010 23:05:33 +0000
(
00:05
+0100)
package/src/org/maemo/hermes/gui/contactview.py
patch
|
blob
|
history
diff --git
a/package/src/org/maemo/hermes/gui/contactview.py
b/package/src/org/maemo/hermes/gui/contactview.py
index
f941cbb
..
0728d50
100644
(file)
--- a/
package/src/org/maemo/hermes/gui/contactview.py
+++ b/
package/src/org/maemo/hermes/gui/contactview.py
@@
-45,7
+45,7
@@
class ContactView(hildon.PannableArea):
# -- Build the tree model...
#
- for contact in self.contacts:
+ for contact in sorted(self.contacts, cmp = lambda a, b: cmp(a.get_name(), b.get_name())):
if not contact.get_name():
continue