Skip to content

Commit

Permalink
Fix playlist sorting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
minosiants committed Feb 27, 2020
1 parent a2f266e commit acabbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/templates/playlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
sortBy = function sortBy (pl, countField){

var items = pl.videos.sort(function(a, b){
if(a.statistics.countField == null)
if(a.statistics[countField] == null)
return 0;
var aa = parseInt(a.statistics[countField]),
bb = parseInt(b.statistics[countField]);
Expand Down

0 comments on commit acabbd1

Please sign in to comment.