// second is the direction
String[] sort = sortingArray[i].split(":");
if (sort[0] != null) {
if ("asc".equals(sort[1].toLowerCase())) {
sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_ASC));
} else if ("desc".equals(sort[1].toLowerCase())) {
sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_DESC));
} else {
sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_NONE));
}
}
}
}
return sortingColl.toArray(ret);