class Solution(object):
def kthLargestNumber(self, nums, k):
"""
:type nums: List[str]
:type k: int
:rtype: str
"""
def compare(a, b):
if len(a) > len(b):
return -1
if len(a) < len(b):
return 1
if a > b:
return -1
else:
return 1
nums.sort(key=functools.cmp_to_key(compare))
return nums[k - 1]