2191. Sort the Jumbled Numbers
## 思路
写个convert func转换新数字
再根据这func排序原本的数列
## Code
```python
class Solution:
def sortJumbled(self, mapping: List[int], nums: List[int]) -> List[int]:
def convert(num):
# corner case
if num == 0:
return mapping[num]
res, shift = 0, 1
while num:
num, digit = divmod(num, 10)
res += shift * mapping[digit]
shift *= 10
return res
return sorted(nums, key=convert)
```