Revert "Distinguish between no results and loading when sorting global search results"

This reverts commit 2be9871d0528720b2cc0f92d95e4ef135558cc22.

(cherry picked from commit c950595fe32eb6d73adeec2554c229ab4bf5c0d6)
This commit is contained in:
arkon 2020-12-11 21:58:04 -05:00 committed by Jobobby04
parent cb1a1e29be
commit 6e346b231e

View File

@ -187,8 +187,7 @@ open class GlobalSearchPresenter(
.sortedWith(
compareBy(
// Bubble up sources that actually have results
{ it.results?.isEmpty() },
{ it.results == null },
{ it.results.isNullOrEmpty() },
// Same as initial sort, i.e. pinned first then alphabetically
{ it.source.id.toString() !in pinnedSourceIds },
{ "${it.source.name.toLowerCase()} (${it.source.lang})" }