diff options
-rw-r--r-- | icespider/core/core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/icespider/core/core.cpp b/icespider/core/core.cpp index 6313209..b5eec1e 100644 --- a/icespider/core/core.cpp +++ b/icespider/core/core.cpp @@ -35,6 +35,11 @@ namespace IceSpider { auto & lroutes = routes[r->pathElementCount()]; lroutes.push_back(r); } + for (auto & l : routes) { + std::sort(l.begin(), l.end(), [](const auto & a, const auto & b) { + return a->path < b->path; + }); + } } Core::~Core() |