Golang sort solution
go\nfunc sortJumbled(mapping []int, nums []int) []int {\n\ttrans := make(map[int][2]int)\n\tfor i, num := range nums {\n\t\ttrans[num] = [2]int{transNum(mapping
```go\nfunc sortJumbled(mapping []int, nums []int) []int {\n\ttrans := make(map[int][2]int)\n\tfor i, num := range nums {\n\t\ttrans[num] = [2]int{transNum(mapping, num), i}\n\t}\n\tsort.Slice(nums, func(i, j int) bool {\n\t\tif trans[nums[i]][0] == trans[nums[j]][0] {\n\t\t\treturn trans[nums[i]][1] < trans[nums[j]][1]\n\t\t}\n\t\treturn trans[nums[i]][0] < trans[nums[j]][0]\n\t})\n    return nums\n}\n\nfunc transNum(mapping []int, input int) int {\n\tres := 0\n\tinputString := strconv.Itoa(input)\n\tfor _, c := range inputString {\n\t\tres = res*10 + mapping[c-\'0\']\n\t}\n\treturn res\n}\n```
['Sorting', 'Go']