From 76daa733a988d18fcf76f3f61e04e11fbd31d516 Mon Sep 17 00:00:00 2001 From: Viacheslav Poturaev Date: Thu, 28 Aug 2025 22:42:45 +0200 Subject: [PATCH] Sort file names before playing --- cmd/catp/catp/app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/catp/catp/app.go b/cmd/catp/catp/app.go index 830ffcd..2d81697 100644 --- a/cmd/catp/catp/app.go +++ b/cmd/catp/catp/app.go @@ -15,6 +15,7 @@ import ( "path" "path/filepath" "runtime/pprof" + "sort" "strings" "sync" "sync/atomic" @@ -604,6 +605,8 @@ func Main(options ...func(o *Options)) error { //nolint:funlen,cyclop,gocognit,g } } + sort.Strings(files) + if *output != "" && r.outDir == "" { //nolint:nestif fn := *output