后台修改即可
List<c> cList = cMapper.selectList(null);
Collections.sort(cList, new Comparator<c>() {
@Override
public int compare(c o1, c o2) {
return Integer.parseInt(o1.getExtension())-Integer.parseInt(o2.getExtension());
}
});