scala默认是自然排序的,如果想要自定义比较器,可以使用sortWith方法, 例如: val sortedWith = users.sortWith{case(user1,user2) => user1.
確定! 回上一頁