Comparator 使用小记

Nicksxs at 
在 Java8 的 stream 之前,将对象进行排序的时候,可能需要对象实现 Comparable 接口,或者自己实现一个 Comparator,比如这样子我的对象是 Entity<figure class="highlight……