Skip to content

Commit

Permalink
Update http.go (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed May 10, 2022
1 parent fea850c commit d7cb9b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/app/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"os"
"reflect"
"runtime"
"sort"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -386,6 +387,9 @@ func (h *Handler) makeAppWorkerJS() []byte {
for k := range resources {
resourcesTocache = append(resourcesTocache, k)
}
sort.Slice(resourcesTocache, func(a, b int) bool {
return strings.Compare(resourcesTocache[a], resourcesTocache[b]) < 0
})

var b bytes.Buffer
if err := template.
Expand Down

0 comments on commit d7cb9b9

Please sign in to comment.