change stable_sort to sort(in this place it is better)

This commit is contained in:
Filip Sykala - NTB T15p 2022-11-29 13:58:41 +01:00
parent fe736291c7
commit 1fa532c624

View File

@ -160,7 +160,7 @@ bool has_duplicate_points(std::vector<Point> &&pts)
Points collect_duplicates(Points pts /* Copy */)
{
std::stable_sort(pts.begin(), pts.end());
std::sort(pts.begin(), pts.end());
Points duplicits;
const Point *prev = &pts.front();
for (size_t i = 1; i < pts.size(); ++i) {