-public:
- bool operator() (boost::filesystem::path a, boost::filesystem::path b)
- {
- boost::optional<int> na = extract_number (a);
- boost::optional<int> nb = extract_number (b);
- if (!na || !nb) {
- std::cout << a << " " << b << " " << (a.string() < b.string()) << "\n";
- return a.string() < b.string();
- }
+ auto an = extract_numbers (a);
+ auto bn = extract_numbers (b);
+
+ int const anl = an.length ();
+ int const bnl = bn.length ();