From 1dee3098cfbc4b12a2f7611c0981819b0cfe2412 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 11 Apr 2018 23:37:41 +0200 Subject: [PATCH] sort the lands in geom-exp by quality --- geom-exp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/geom-exp.cpp b/geom-exp.cpp index dff17231..3e506ef1 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -377,6 +377,7 @@ void showEuclideanMenu() { dialog::addBreak(50); generateLandList(isLandValid); + stable_sort(landlist.begin(), landlist.end(), [] (eLand l1, eLand l2) { return isLandValid(l1) > isLandValid(l2); }); for(int i=0; i= size(landlist)) { dialog::addBreak(100); break; }