Fixed a bug in the array differ when comparing 4,3,1,2 to 1,2,3,4 would give the wrong result