Zachary Kotlarek 13 лет назад
Родитель
Сommit
9979f5a225
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      web/includes/display.php

+ 2 - 2
web/includes/display.php

@@ -134,7 +134,7 @@ function printAllSeries() {
 	foreach ($all_series as $series => $seasons) {
 		$sorted_series[ $series ] = sortTitle($series);
 	}
-	asort($sorted_series);
+	asort($sorted_series, SORT_FLAG_CASE | SORT_NATURAL);
 
 	# Display all series
 	echo '<ul data-role="listview" data-filter="true" data-autodividers="true" id="sortedList">';
@@ -153,7 +153,7 @@ function printAllSeries() {
 			echo '<img src="tv.png" class="ui-li-icon ui-corner-none">';
 		}
 		echo htmlspecialchars($sort);
-		echo '<span class="ui-li-count">' . count($seasons) . '</span>';
+		echo '<span class="ui-li-count">' . count($all_series[ $series ]) . '</span>';
 		echo '</a></li>';
 	}
 	echo '</ul>';