Apparently gmail hates me and my last response didn't get through:
a = ['awefawef', 'awefawfsf', 'awefsdf', 'zzzzzzzzzzzzzz', 'zzzzzzzzzzzzzz', 'zzzzzzzzzzzzzz']
f = filter(lambda s: s == a[-1], a) l = sorted(lst[:-len(f)]) + fNow, not 100% sure about efficiency over large sizes of a, but that's a naive stab at it anyway.
-- Demian Brecht @demianbrecht http://demianbrecht.github.com -- http://mail.python.org/mailman/listinfo/python-list