Simple Ruby one-liner
This is a simple one liner on ruby. The complexity will be O(nlog(n) * m). Where n will be length of the nums array and m the length of the biggets number.\n\n#
This is a simple one liner on ruby. The complexity will be `O(nlog(n) * m)`. Where `n` will be length of the `nums` array and `m` the length of the biggets number.\n```\n# @param {Integer[]} mapping\n# @param {Integer[]} nums\n# @return {Integer[]}\ndef sort_jumbled(mapping, nums)\n  nums.sort_by { |num| num.digits.map{ |digit| mapping[digit] }.reverse.join.to_i }\nend\n```
['Sorting', 'Ruby']