sortBy comparitor compares arrays