After reading several questions and examples I came with this example which I modified a bit to make it work as expected.

Collections.sort(listToOrder, Comparator.comparing(item,java,list,collections"/>
	














首页 > 解决方案 > 订单 with the order of List java

After reading several questions and examples I came with this example which I modified a bit to make it work as expected.

Collections.sort(listToOrder, Comparator.comparing(item