Maybe the fact that you're reversing one of the arrays is making them not equals each other any more.

// Json