blob: 725017067256b16ce3f36d108444cd20d5205fe7 (
plain) (
tree)
|
|
prioritized = ['INBOX', 'QueensU.INBOX']
def mycmp(x, y):
for prefix in prioritized:
xsw = x.startswith(prefix)
ysw = y.startswith(prefix)
if xsw and ysw:
return cmp(x, y)
elif xsw:
return -1
elif ysw:
return +1
return cmp(x, y)
|