Reverse order, as we're scanning from the end

This commit is contained in:
Marcus Holland-Moritz 2020-12-09 18:53:16 +01:00
parent a3d06dc469
commit a0ecc472f6

View File

@ -305,7 +305,7 @@ void inode_manager_<LoggerPolicy>::presort_index(
auto& na = fa->name();
auto& nb = fb->name();
if (na < nb) {
if (na > nb) {
return true;
} else if (na > nb) {
return false;
@ -313,7 +313,7 @@ void inode_manager_<LoggerPolicy>::presort_index(
++num_path;
return fa->path() < fb->path();
return fa->path() > fb->path();
});
ti << "pre-sorted index (" << num_name << " name, " << num_path