fix native sort+dedup