如果想針對陣列進行排序,可以使用 java.util.Arrays的sort() 方法,如果你查詢API文件,會發現該方法針對物件排序時有兩個版本,一個是你收集在陣列中的物件必須是 Comparable (否則會拋出 ClassCastException ),另一個版本則可以傳入 Comparator 指定排序方式。 https://openhome.cc/Gossip/Java/ComparableComparator.html
document: https://developer.apple.com/testflight/ https://itunespartner.apple.com/en/apps/overview Reference: https://www.youtube.com/watch?v=1CcCKQHjDpw App Store Connect: https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app/1445478142/testflight?section=alltesters