Browse files

When sorting by episode number, perform 2nd level sorting on label ra…

…ther than filename.

At tv show level, the episode number is the amount of total or unwatched episodes, and filename is empty. Therefore, shows with equal episode numbers didn't always sort in the same order.
  • Loading branch information...
1 parent ce49e91 commit f6d5bb5ae222cf7df3b4b7b7dc8139365f2aeaa7 @Voyager1 Voyager1 committed Oct 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/utils/SortUtils.cpp
@@ -285,7 +285,7 @@ string ByEpisodeNumber(SortAttribute attributes, const SortItem &values)
num = ((uint64_t) << 32) + ( << 16);
CStdString label;
- label.Format("%"PRIu64" %s", num,;
+ label.Format("%"PRIu64" %s", num, ByLabel(attributes, values).c_str());
return label;

0 comments on commit f6d5bb5

Please sign in to comment.