mirror of
https://github.com/zhigang1992/esbuild.git
synced 2026-04-30 18:32:49 +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
|
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
|
// Sort alphabetically by directory first
|
||||||
if ti.Dir < tj.Dir {
|
if ti.Dir < tj.Dir {
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user