Skip to content

Commit 397f4e8

Browse files
facchinmcmaglie
authored andcommitted
Fixed LibraryOfSameTypeComparator comparator
1 parent 77ec25d commit 397f4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/cc/arduino/contributions/libraries/LibraryOfSameTypeComparator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public int compare(UserLibrary o1, UserLibrary o2) {
4747
return -1;
4848
}
4949
if (!o1.getTypes().get(0).equals(o2.getTypes().get(0))) {
50-
return 0;
50+
return o1.getTypes().get(0).compareTo(o2.getTypes().get(0));
5151
}
5252
return o1.getName().compareTo(o2.getName());
5353
}

0 commit comments

Comments
 (0)