sort the results and expected, e.g. ```hist.sort(); expected.sort()``