Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/voice.py
diff options
context:
space:
mode:
Diffstat (limited to 'voice.py')
-rw-r--r--voice.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/voice.py b/voice.py
index 5fc732e..be4366b 100644
--- a/voice.py
+++ b/voice.py
@@ -84,6 +84,9 @@ class Voice:
friendlyname = friendlyname.capitalize()
self.friendlyname = _(friendlyname)
+ def __cmp__(self, other):
+ return cmp(self.friendlyname, other.friendlyname if other else '')
+
def allVoices():
if _allVoices:
return _allVoices