Skip to content

Commit

Permalink
fix sort
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Jan 20, 2024
1 parent cdbd4ab commit 78b63bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pmtiles/makesync.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ func Sync(logger *log.Logger, file string, syncfilename string, overfetch float3
idx = idx + 1
}

sort.Slice(wanted, func(i, j int) bool { return wanted[i].Start < wanted[j].Start })

close(tasks)
wg.Wait()

Expand Down

0 comments on commit 78b63bb

Please sign in to comment.