List集合排序222222

时间:2022-02-13 11:10:21
【文件属性】:
文件名称:List集合排序222222
文件大小:5KB
文件格式:JAR
更新时间:2022-02-13 11:10:21
List排序 按字段排序 集合对象排序 导入jar 包 调用 String[] arr1 = new String[1]; arr1[0] = "Sex"; String[] arr2 = new String[1]; arr2[0] = "asc"; List sortList = controllerForList.sortList(list, arr1, arr2); 参数1 排序的集合 参数2 排序的字段(与定义字段一致) 可多个 参数3 排序方式(asc desc) 暂时只支持String 和int的排序 可能有些BUG 敬请谅解

网友评论