Stabilize feature order in overzoom (#210)

* Stabilize feature order in overzoom

* I want my sorts to be stable, please

* Revert "[ci] test in debug mode (#202)"

This reverts commit 853ada87b5.

* No need to reinitialize here
This commit is contained in:
Erica Fischer
2024-02-29 10:39:10 -08:00
committed by GitHub
parent d9a5c2eed7
commit 312e1560a3
14 changed files with 33 additions and 26 deletions
+1 -1
View File
@@ -377,7 +377,7 @@ std::string mvt_tile::encode() {
sorted_values.push_back(std::move(sv));
}
std::sort(sorted_values.begin(), sorted_values.end());
std::stable_sort(sorted_values.begin(), sorted_values.end());
std::vector<size_t> mapping;
mapping.resize(sorted_values.size());