mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
sort variants alphabetically
This commit is contained in:
@@ -2238,6 +2238,13 @@ public class Presenter implements IPlugInPort {
|
|||||||
if (defaultVariants != null && !defaultVariants.isEmpty())
|
if (defaultVariants != null && !defaultVariants.isEmpty())
|
||||||
variants.addAll(defaultVariants);
|
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;
|
return variants;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user