Added checkbox for sorting the output to bring it inline with the input.