Use twice as much code for sorting