major list.sort() bugfix