sorting bug fixes