Kth Largest Element - Read Statement

Given an integer array nums and an integer k, return the kkth largest element. Note that it's the kkth largest in sorted order, not the kkth distinct element.

Example: For [3,2,1,5,6,4] and k=2k=2, the answer is 55 (the sorted array is [6,5,4,3,2,1][6,5,4,3,2,1]). You could sort in O(nlogn)O(n \log n), but can you do better?