Changed sort to bubble