C#. Sort array by length then by string value using lambda
Handy to get sort to do what you want. Lamda expresion for comparison opertator.\n\n\n    public string KthLargestNumber(string[] nums, int k) {\n        \n    
Handy to get sort to do what you want. Lamda expresion for comparison opertator.\n\n```\n    public string KthLargestNumber(string[] nums, int k) {\n        \n        Array.Sort(nums, (a, b) =>\n            a.Length == b.Length ? a.CompareTo(b) :  a.Length - b.Length );\n        \n        return nums[^k];\n    }\n```\n
[]