Sorting retarded bug