Codechange: use std::sort() in GUIList
This commit is contained in:
@@ -1148,9 +1148,9 @@ private:
|
||||
}
|
||||
|
||||
/** Sort the company league by performance history */
|
||||
static int CDECL PerformanceSorter(const Company * const *c1, const Company * const *c2)
|
||||
static bool PerformanceSorter(const Company * const &c1, const Company * const &c2)
|
||||
{
|
||||
return (*c2)->old_economy[0].performance_history - (*c1)->old_economy[0].performance_history;
|
||||
return c2->old_economy[0].performance_history < c1->old_economy[0].performance_history;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user