10 lines - no String Conversion
Quick and Efficient: \n Define local conversion function\n Use modulo arithmetic to access each digit individually\n\t If you find this part confusing replace t
Quick and Efficient: \n* Define local conversion function\n* Use modulo arithmetic to access each digit individually\n\t* If you find this part confusing replace the mapping call with just `d%10` - this will rebuild the original number\n* Use *do while* to handle the case of 0\n* Pass to sortedBy (creates custom comparator implicitly with lambda function and sorts according to it - it\'s literally just a wrapper for lazy people to not have to define a comparator)\n```\nclass Solution {\n    fun sortJumbled(mapping: IntArray, nums: IntArray): IntArray {\n        fun convert(input : Int) : Int {\n            var d = input; var pot = 1; var nuNum = 0\n            do  {\n                nuNum += pot*mapping[d % 10]\n                pot *= 10\n                d /= 10\n            } while (d > 0)        \n            return nuNum\n        }\n        return nums.sortedBy{convert(it)}.toIntArray()\n    }\n}\n```
['Java', 'Kotlin']