projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e63d22
)
GUIFormSpecMenu: Fix legacy sorting using std::stable_sort
author
SmallJoker
<mk939@ymail.com>
Sat, 14 Dec 2019 20:28:07 +0000
(21:28 +0100)
committer
SmallJoker
<mk939@ymail.com>
Sat, 14 Dec 2019 20:28:07 +0000
(21:28 +0100)
src/gui/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/guiFormSpecMenu.cpp
b/src/gui/guiFormSpecMenu.cpp
index ab20840f97c5da16fb69ef2c413e8947f5d58676..320608642f8917f92c73339a988613ca1a7d1423 100644
(file)
--- 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::s
table_s
ort(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());