Sort input files.
authorTom Clegg <tom@tomclegg.ca>
Thu, 28 Oct 2021 15:28:04 +0000 (11:28 -0400)
committerTom Clegg <tom@tomclegg.ca>
Thu, 28 Oct 2021 15:28:04 +0000 (11:28 -0400)
refs #17763

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

anno2vcf.go

index 9f28d3b6762cee5b8a0af9e01c8dc6a487524e1e..000ad9809619f6f2a929fca6c89d21c24322985d 100644 (file)
@@ -97,6 +97,7 @@ func (cmd *anno2vcf) RunCommand(prog string, args []string, stdin io.Reader, std
                return 1
        }
        d.Close()
                return 1
        }
        d.Close()
+       sort.Slice(fis, func(i, j int) { return fis[i].Name() < fis[j].Name() })
 
        type call struct {
                tile      int
 
        type call struct {
                tile      int