DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Sorted For Python Before 2.4
def sorted(seq): seq.sort() return seq






Comments
Snippets Manager replied on Mon, 2012/05/07 - 2:12pm
def sorted(seq): newseq = seq[:] newseq.sort() return newseq