detecting incorrect sorting by checking diff exit status
computing the arary of results to figure out winners
sorting by winners