aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/utils/SortUtils.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/xbmc/utils/SortUtils.cpp b/xbmc/utils/SortUtils.cpp
index 4d4a9862ed..cefaa0b7a0 100644
--- a/xbmc/utils/SortUtils.cpp
+++ b/xbmc/utils/SortUtils.cpp
@@ -686,7 +686,14 @@ bool SortUtils::SortFromDataset(const SortDescription &sortDescription, MediaTyp
if (!DatabaseUtils::GetDatabaseResults(mediaType, fields, dataset, results))
return false;
- Sort(sortDescription, results);
+ SortDescription sorting = sortDescription;
+ if (sortDescription.sortBy == SortByNone)
+ {
+ sorting.limitStart = 0;
+ sorting.limitEnd = -1;
+ }
+
+ Sort(sorting, results);
return true;
}