github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/engine/wazevo/frontend/sort_id.go (about) 1 //go:build go1.21 2 3 package frontend 4 5 import ( 6 "slices" 7 8 "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" 9 ) 10 11 func sortSSAValueIDs(IDs []ssa.ValueID) { 12 slices.SortFunc(IDs, func(i, j ssa.ValueID) int { 13 return int(i) - int(j) 14 }) 15 }