Use comparator already in std::set, avoid sort.