diff --git a/src/js/components/SearchResults.js b/src/js/components/SearchResults.js index 91ba997de..fb9858416 100755 --- a/src/js/components/SearchResults.js +++ b/src/js/components/SearchResults.js @@ -27,11 +27,13 @@ const SearchResults = ({ const encodedTerm = encodeURIComponent(term); let results = [...rawResults]; - results = sortItems( - results, - (type === 'tracks' && sortField === 'followers' ? 'popularity' : sortField), - sortReverse, - ); + if (sortField !== 'asloaded') { + results = sortItems( + results, + (type === 'tracks' && sortField === 'followers' ? 'popularity' : sortField), + sortReverse, + ); + } const resultsCount = results.length; if (all && type !== 'tracks' && results.length > 5) { diff --git a/src/js/locale/en.yaml b/src/js/locale/en.yaml index 214ddef59..9ae46b367 100755 --- a/src/js/locale/en.yaml +++ b/src/js/locale/en.yaml @@ -353,6 +353,7 @@ search: more: 'All playlists (%{count})' tracks: title: Tracks + asloaded: 'As loaded' track: title: Track title_window: '%{name} by %{artists} (track)' diff --git a/src/js/views/Search.js b/src/js/views/Search.js index 50757b0a2..98b55232e 100755 --- a/src/js/views/Search.js +++ b/src/js/views/Search.js @@ -75,6 +75,7 @@ const Search = () => { { value: 'followers', label: i18n('common.popularity') }, { value: 'artist', label: i18n('common.artist') }, { value: 'duration', label: i18n('common.duration') }, + { value: 'asloaded', label: i18n('search.asloaded')} ]; const providerOptions = allProviders.map((value) => ({ value, label: value}))