Check if the order between two arrays has changed