We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0268a9 + 3a014d8 commit 81220f9Copy full SHA for 81220f9
1 file changed
app/src/main/java/org/schabi/newpipe/util/ListHelper.java
@@ -874,6 +874,7 @@ private static Comparator<AudioStream> getAudioTrackNameComparator(
874
875
return Comparator.comparing(AudioStream::getAudioLocale, Comparator.nullsLast(
876
Comparator.comparing(locale -> locale.getDisplayName(appLoc))))
877
- .thenComparing(AudioStream::getAudioTrackType);
+ .thenComparing(AudioStream::getAudioTrackType, Comparator.nullsLast(
878
+ Comparator.naturalOrder()));
879
}
880
0 commit comments