苹果的Accelerate框架在vDSP包中提供有用的向量操作。具体来说,可以在这里找到排序功能。 https://developer.apple.com/documentation/accelerate/vdsp/reversing_and_sorting_functions