mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
sort variants alphabetically
This commit is contained in:
@@ -2238,6 +2238,13 @@ public class Presenter implements IPlugInPort {
|
||||
if (defaultVariants != null && !defaultVariants.isEmpty())
|
||||
variants.addAll(defaultVariants);
|
||||
}
|
||||
Collections.sort(variants, new Comparator<Template>() {
|
||||
|
||||
@Override
|
||||
public int compare(Template o1, Template o2) {
|
||||
return o1.getName().compareTo(o2.getName());
|
||||
}
|
||||
});
|
||||
return variants;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user