From 8a870167d9cd4c3540e28601d91f0ca54e7578b3 Mon Sep 17 00:00:00 2001 From: Rushdi Date: Wed, 25 Jan 2023 17:50:30 +0530 Subject: [PATCH] Restructure SortColumn Filter --- .../org/wso2/carbon/device/mgt/common/PaginationRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/PaginationRequest.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/PaginationRequest.java index b25d9205af..1681eb7ba6 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/PaginationRequest.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/PaginationRequest.java @@ -183,7 +183,7 @@ public class PaginationRequest { * @param sortColumns which is separated by a colon(:) and first will be the columnNane and the second will be type ASC or DESC * @return sortColumnList as a list of sortColumn */ - public static List convertToSortColumn(List sortColumns) { + public static List addSortColumn(List sortColumns) { List sortColumnList = new ArrayList<>(); for (String sortBy: sortColumns) { SortColumn sortColumn = new SortColumn();