Add array comparison and sort option