Changeset 3865 for WAeUP_SRP/trunk/skins/waeup_futminna
- Timestamp:
- 21 Jan 2009, 07:59:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_futminna/getPaymentsFolderInfo.py
r3783 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 127 118 128 119 payments.sort(cmp_id) 129 info['payments'] = payments 120 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 130 121 return info 131 122
Note: See TracChangeset for help on using the changeset viewer.