mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
FIX Editions in Checkboxlist sorted (latest to earliest)
This commit is contained in:
@@ -50,8 +50,15 @@ public class DialogChooseSets {
|
|||||||
|
|
||||||
// create a local copy of the editions list so we can sort it
|
// create a local copy of the editions list so we can sort it
|
||||||
List<CardEdition> editions = Lists.newArrayList(FModel.getMagicDb().getEditions());
|
List<CardEdition> editions = Lists.newArrayList(FModel.getMagicDb().getEditions());
|
||||||
|
Collections.sort(editions);
|
||||||
|
Collections.reverse(editions);
|
||||||
|
|
||||||
List<CardEdition> customEditions = Lists.newArrayList(FModel.getMagicDb().getCustomEditions());
|
List<CardEdition> customEditions = Lists.newArrayList(FModel.getMagicDb().getCustomEditions());
|
||||||
boolean customSetsExist = (customEditions.size() > 0);
|
boolean customSetsExist = (customEditions.size() > 0);
|
||||||
|
if (customSetsExist){
|
||||||
|
Collections.sort(customEditions);
|
||||||
|
Collections.reverse(customEditions);
|
||||||
|
}
|
||||||
List<FCheckBox> coreSets = new ArrayList<>();
|
List<FCheckBox> coreSets = new ArrayList<>();
|
||||||
List<FCheckBox> expansionSets = new ArrayList<>();
|
List<FCheckBox> expansionSets = new ArrayList<>();
|
||||||
List<FCheckBox> otherSets = new ArrayList<>();
|
List<FCheckBox> otherSets = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user