spider_spec: Sort arrays before comparing