mirror of
https://github.com/zhigang1992/esbuild.git
synced 2026-01-12 22:46:54 +08:00
fix summary order in the same directory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user