[controle_tresorier.py] Tri par id numerique, pas alphabetique

Ignore-this: b9a5f93e65ee693f804a4b2b3fa05d0d

darcs-hash:20111021153254-3651d-aab6539e1c48d2fe792dd36f255f541f6c70b1dd.gz
This commit is contained in:
aupetit 2011-10-21 17:32:54 +02:00
parent 3cfdc4dd46
commit a19775bc1e

View file

@ -176,7 +176,7 @@ def controle_interactif(quoi):
todo_list['adherent'].sort(key = lambda x: (x.nom(), x.prenom())) todo_list['adherent'].sort(key = lambda x: (x.nom(), x.prenom()))
if trier_par == 'id': if trier_par == 'id':
todo_list['adherent'].sort(key = lambda x: x.id()) todo_list['adherent'].sort(key = lambda x: int(x.id()))
elif trier_par == 'nom': elif trier_par == 'nom':
pass pass
else: else: