Fixing arguments comparator to take arrays into account.