Add comparator option for array