📜  orting-an-arraylist-of-objects-by-last-name-and-firstname-in-java - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:13.193000             🧑  作者: Mango

代码示例1
//sort by a single field
    Collections.sort(list, (o1,o2) ->  o1.getfName().compareTo(o2.getfName()));