Patch "cb0c3e5 Add init and finish functionality" changed way of
keeping test cases. Previously they were kept as list of structures,
now it's list of pointers.
In such case proper sorting needs a compare function, otherwise
it compares pointers.
Proper sorting predicate has been added.
Change-Id: I4ad755326456cdedce69ae71a0ab050df15899d9
for (auto &collector : m_collectors) {
collector.second->CollectCurrentTestGroupName(group.first);
}
- list.sort();
+ list.sort([](const TestCasePtr &a, const TestCasePtr &b) { return (*a < *b); });
for (TestCaseList::const_iterator iterator = list.begin();
iterator != list.end();