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:
parent
77ec25de61
commit
397f4e81ea
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user