Use comparator already in std::set, avoid sort.
Remove (now) unused variable.