2 lines code in JS
\nvar minimumSum = function(num) {\n    const temp=num.toString().split(\'\').sort();\nreturn (parseInt(temp[0]+temp[2])+parseInt(temp[1]+temp[3]));\n    \n};\n
```\nvar minimumSum = function(num) {\n    const temp=num.toString().split(\'\').sort();\nreturn (parseInt(temp[0]+temp[2])+parseInt(temp[1]+temp[3]));\n    \n};\n```
['JavaScript']