利用python中sort函数

# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
# 
# @param a int整型一维数组 
# @param n int整型 
# @param K int整型 
# @return int整型
#
class Solution:
    def findKth(self , a: List[int], n: int, K: int) -> int:
        # write code here
        a.sort(reverse = False)
        return a[n-K]
#         for i in range(0,K):
#             for j in range(i+1,n):
#                 if a[j] < a[i]:
#                     t = a[i]
#                     a[i] = a[j]
#                     a[j] = t
#         return a[K-1]