diff --git a/internal/epub/sortpath/epub_sortpath.go b/internal/epub/sortpath/epub_sortpath.go index e89f616..bcefb6d 100644 --- a/internal/epub/sortpath/epub_sortpath.go +++ b/internal/epub/sortpath/epub_sortpath.go @@ -16,7 +16,7 @@ type part struct { number float64 } -func (a part) Compare(b part) float64 { +func (a part) compare(b part) float64 { if a.number == 0 || b.number == 0 { return float64(strings.Compare(a.fullname, b.fullname)) } @@ -70,7 +70,7 @@ func comparePart(a, b []part) float64 { m = len(b) } for i := 0; i < m; i++ { - c := a[i].Compare(b[i]) + c := a[i].compare(b[i]) if c != 0 { return c }