PYTHON3 | EASY  SOLUTION |
\nclass Solution:\n    def smallestNumber(self, num: int) -> int:\n        \n        if num == 0 : return 0 \n        snum = sorted(str(num))\n        if snum[0
```\nclass Solution:\n    def smallestNumber(self, num: int) -> int:\n        \n        if num == 0 : return 0 \n        snum = sorted(str(num))\n        if snum[0] == \'-\' :\n            return -int("".join(snum[:0:-1]))\n        elif snum[0] == \'0\' :\n            x = snum.count(\'0\')\n            return "".join([snum[x]]+[\'0\'*x]+snum[x+1:])\n        else :\n            return "".join(snum)\n```
['String', 'Sorting', 'Python', 'Python3']