File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/src/main/java/com/duckduckgo/app/browser Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ class BrowserTrackersAnimatorHelper {
234234 .asSequence()
235235 .distinct()
236236 .take(MAX_LOGOS_SHOWN + 1 )
237+ .sortedWithDisplayNamesStartingWithVowelsToTheEnd()
237238 .map {
238239 val resId = TrackersRenderer ().networkLogoIcon(activity, it.name)
239240 if (resId == null ) {
@@ -417,6 +418,10 @@ class BrowserTrackersAnimatorHelper {
417418 }
418419 }
419420
421+ private fun Sequence<Entity>.sortedWithDisplayNamesStartingWithVowelsToTheEnd (): Sequence <Entity > {
422+ return sortedWith(compareBy { " AEIOU" .contains(it.displayName.take(1 )) })
423+ }
424+
420425 companion object {
421426 private const val TRACKER_LOGOS_DELAY_ON_SCREEN = 2400L
422427 private const val DEFAULT_ANIMATION_DURATION = 150L
You can’t perform that action at this time.
0 commit comments