GUIFormSpecMenu: Fix legacy sorting using std::stable_sort

This commit is contained in:
SmallJoker 2019-12-14 21:28:07 +01:00
parent 8e63d22d64
commit c3d0aab0bc

@ -3031,7 +3031,7 @@ void GUIFormSpecMenu::legacySortElements(core::list<IGUIElement *>::Iterator fro
elements.emplace_back(*it); elements.emplace_back(*it);
// 2: Sort the container // 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 { [this] (const IGUIElement *a, const IGUIElement *b) -> bool {
const FieldSpec *spec_a = getSpecByID(a->getID()); const FieldSpec *spec_a = getSpecByID(a->getID());
const FieldSpec *spec_b = getSpecByID(b->getID()); const FieldSpec *spec_b = getSpecByID(b->getID());