import functools
class Solution(object):
def printMinNumber(self, nums):
"""
:type nums: List[int]
:rtype: str
"""
return ''.join(sorted([str(i) for i in nums], key=functools.cmp_to_key(lambda a, b: int(a + b) - int(b + a) )))