diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 5da1d41934..a46991d0ec 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -722,6 +722,7 @@ public: switch (widget) { case WID_GL_SORT_BY_ORDER: // Flip sorting method ascending/descending this->vehgroups.ToggleSortOrder(); + this->vehgroups.ForceResort(); this->SetDirty(); break; diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 9b7fabffee..c783e8bfe7 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -2232,6 +2232,7 @@ public: switch (widget) { case WID_VL_SORT_ORDER: // Flip sorting method ascending/descending this->vehgroups.ToggleSortOrder(); + this->vehgroups.ForceResort(); this->SetDirty(); break;