mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Switch back to using a stable sort
so that for example demos stay sorted the same way when sorting by demo markers and removing a demo, otherwise they get totally reordered every time. as reported by Shyzo
This commit is contained in:
parent
30d3aedc19
commit
a4bb2f8764
|
@ -109,7 +109,7 @@ void sort_quick(R range)
|
|||
template<class R>
|
||||
void sort(R range)
|
||||
{
|
||||
std::sort(&range.front(), &range.back() + 1);
|
||||
std::stable_sort(&range.front(), &range.back() + 1);
|
||||
}
|
||||
|
||||
template<class R>
|
||||
|
|
Loading…
Reference in a new issue