diff options
Diffstat (limited to 'search/result.hpp')
-rw-r--r-- | search/result.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/search/result.hpp b/search/result.hpp index 6a1326b804..88c3221dbe 100644 --- a/search/result.hpp +++ b/search/result.hpp @@ -100,6 +100,11 @@ public: { m_vec.swap(rhs.m_vec); } + + template <class LessT> void Sort(LessT lessFn) + { + sort(m_vec.begin(), m_vec.end(), lessFn); + } }; } |