Back to project page ls-vertretungsplan.
The source code is released under:
GNU General Public License
If you think the Android project ls-vertretungsplan listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.johan.vertretungsplan.comparators; // w ww . j a va 2 s .co m import java.util.Comparator; import com.johan.vertretungsplan.objects.Schule; public class AlphabeticalSchoolComparator implements Comparator<Schule> { @Override public int compare(Schule one, Schule two) { int compare = one.getCity().compareTo(two.getCity()); if(compare == 0) { compare = one.getName().compareTo(two.getName()); } return compare; } }