------
## 最终结论
```python
from functools import cmp_to_key

def compare(x, y):
    # Compare two numbers based on their concatenated results
    if x + y > y + x:
        return -1  # x should come before y
    elif x + y < y + x:
        return 1   # y should come before x
    else:
        return 0   # they are equal in terms of ordering

def largestNumber(nums):
    # Convert integers to strings for comparison
    nums_str = list(map(str, nums))
    
    # Sort the numbers based on the custom comparator
    nums_str.sort(key=cmp_to_key(compare))
    
    # Join the sorted numbers into a single string
    result = ''.join(nums_str)
    
    # Handle the case where the result is all zeros
    return result if result[0] != '0' else '0'
```