uniq: sorted: only store last seen element