Add Sort Settings - Filter/Order/Type to Cloner GUI

This commit is contained in:
Kam committed 2023-05-03 15:01:23 -04:00
1 parent 36cd81e6e4
commit 5d738987b2
6 files changed
+188 -58

No files matched your search

@@ -239,9 +239,11 @@ public class GuiCustomScroll extends GuiScreen
setSize(xSize,ySize);
}
public void setList(List<String> list, boolean ascending){
public void setList(List<String> list, boolean ascending, boolean caseOrder){
isSorted = true;
Collections.sort(list, String.CASE_INSENSITIVE_ORDER);
if(caseOrder){
Collections.sort(list, String.CASE_INSENSITIVE_ORDER);
}
if(!ascending){
Collections.reverse(list);
}