List集合排序

上传:gramy 浏览: 76 推荐: 0 文件: 大小:5KB 上传时间:2019-03-11 09:57:33 版权申诉
导入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 敬请谅解
上传资源
用户评论