aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-12-14 21:28:07 +0100
committerSmallJoker <mk939@ymail.com>2019-12-14 21:28:07 +0100
commitc3d0aab0bc64b0b0c319cba9daad31ec3c59515b (patch)
tree5faf3370f926818a9946ac1fcf527e2e982b5d4d /src
parent8e63d22d6472b61477f804dc5b00705650f90409 (diff)
downloadminetest-c3d0aab0bc64b0b0c319cba9daad31ec3c59515b.tar.gz
minetest-c3d0aab0bc64b0b0c319cba9daad31ec3c59515b.tar.bz2
minetest-c3d0aab0bc64b0b0c319cba9daad31ec3c59515b.zip
GUIFormSpecMenu: Fix legacy sorting using std::stable_sort
Diffstat (limited to 'src')
-rw-r--r--src/gui/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index ab20840f9..320608642 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -3031,7 +3031,7 @@ void GUIFormSpecMenu::legacySortElements(core::list<IGUIElement *>::Iterator fro
elements.emplace_back(*it);
// 2: Sort the container
- std::sort(elements.begin(), elements.end(),
+ std::stable_sort(elements.begin(), elements.end(),
[this] (const IGUIElement *a, const IGUIElement *b) -> bool {
const FieldSpec *spec_a = getSpecByID(a->getID());
const FieldSpec *spec_b = getSpecByID(b->getID());