fix summary order in the same directory

This commit is contained in:
Evan Wallace
2021-03-28 14:35:26 -07:00
parent da47550091
commit 242fdd81c0

View File

@@ -587,14 +587,6 @@ func (t SummaryTable) Less(i int, j int) bool {
return false
}
// Sort subdirectories first
if strings.HasPrefix(ti.Dir, tj.Dir) {
return true
}
if strings.HasPrefix(tj.Dir, ti.Dir) {
return false
}
// Sort alphabetically by directory first
if ti.Dir < tj.Dir {
return true