1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

Fixed LibraryOfSameTypeComparator comparator

This commit is contained in:
Martino Facchin 2018-05-17 12:57:49 +02:00 committed by Cristian Maglie
parent 77ec25de61
commit 397f4e81ea

View File

@ -47,7 +47,7 @@ public class LibraryOfSameTypeComparator implements Comparator<UserLibrary> {
return -1; return -1;
} }
if (!o1.getTypes().get(0).equals(o2.getTypes().get(0))) { if (!o1.getTypes().get(0).equals(o2.getTypes().get(0))) {
return 0; return o1.getTypes().get(0).compareTo(o2.getTypes().get(0));
} }
return o1.getName().compareTo(o2.getName()); return o1.getName().compareTo(o2.getName());
} }