pull/91/head
Akhil Gupta 4 years ago
parent 9357e93075
commit 7168b85e1d

@ -289,6 +289,7 @@
{{template "scripts"}} {{template "scripts"}}
<script src="/webassets/popper.min.js"></script> <script src="/webassets/popper.min.js"></script>
<script src="/webassets/tippy-bundle.umd.min.js"></script> <script src="/webassets/tippy-bundle.umd.min.js"></script>
<script src="/webassets/stopword.js"></script>
<template id="editTags"> <template id="editTags">
<div class="tags"> <div class="tags">
@ -491,8 +492,11 @@
case "episodesCount-asc":compareFunction=(a,b)=>a.AllEpisodesCount-b.AllEpisodesCount;break; case "episodesCount-asc":compareFunction=(a,b)=>a.AllEpisodesCount-b.AllEpisodesCount;break;
case "episodesCount-desc":compareFunction=(a,b)=>b.AllEpisodesCount-a.AllEpisodesCount;break; case "episodesCount-desc":compareFunction=(a,b)=>b.AllEpisodesCount-a.AllEpisodesCount;break;
case "name-asc":compareFunction=(a,b)=>{ case "name-asc":compareFunction=(a,b)=>{
var nameA = a.Title.toUpperCase(); // ignore upper and lowercase var nameAArr = sw.removeStopwords(a.Title.split(' ')) ;
var nameB = b.Title.toUpperCase(); // ignore upper and lowercase var nameBArr = sw.removeStopwords(b.Title.split(' '));
nameA= nameAArr.length?nameAArr[0].toUpperCase():"";
nameB= nameBArr.length?nameBArr[0].toUpperCase():"";
if (nameA < nameB) { if (nameA < nameB) {
return -1; return -1;
} }
@ -504,8 +508,11 @@
return 0; return 0;
};break; };break;
case "name-desc":compareFunction=(a,b)=>{ case "name-desc":compareFunction=(a,b)=>{
var nameA = b.Title.toUpperCase(); // ignore upper and lowercase var nameAArr = sw.removeStopwords(b.Title.split(' ')) ;
var nameB = a.Title.toUpperCase(); // ignore upper and lowercase var nameBArr = sw.removeStopwords(a.Title.split(' '));
nameA= nameAArr.length?nameAArr[0].toUpperCase():"";
nameB= nameBArr.length?nameBArr[0].toUpperCase():"";
if (nameA < nameB) { if (nameA < nameB) {
return -1; return -1;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save