Comment by monkeyelite Comment by monkeyelite 16 hours ago 1 reply Copy Link View on Hacker News what did you try to use as a comparison function?
Copy Link diath 2 hours ago Collapse Comment - This was the original sort function (it was meant to force "last" to be first on the list after the sort which obviously violated the requirement): std::sort(entries.begin(), entries.end(), [&last] (const auto &a, const auto &b) { if (last && last->getID() == a.id) { return true; } return a.time < b.time; }); Reply View | 0 replies
This was the original sort function (it was meant to force "last" to be first on the list after the sort which obviously violated the requirement):