add sorting to flight.php