quick and dirty sort python