File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ export default {
510510 switch (this .sortKeyword ) {
511511 case ' 按上映年份' :
512512 filteredData .sort (function (a , b ) {
513- return a .year - b .year
513+ return b .year - a .year
514514 })
515515 break
516516 case ' 按片名' :
@@ -524,6 +524,9 @@ export default {
524524 })
525525 break
526526 default :
527+ filteredData .sort (function (a , b ) {
528+ return new Date (b .last ) - new Date (a .last )
529+ })
527530 break
528531 }
529532 if (this .showFind ) {
Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ export default {
486486 switch (this .sortKeyword ) {
487487 case ' 按上映年份' :
488488 filteredData .sort (function (a , b ) {
489- return a .detail .year - b .detail .year
489+ return b .detail .year - a .detail .year
490490 })
491491 break
492492 case ' 按片名' :
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ export default {
324324 switch (this .sortKeyword ) {
325325 case ' 按上映年份' :
326326 filteredData .sort (function (a , b ) {
327- return a .detail .year - b .detail .year
327+ return b .detail .year - a .detail .year
328328 })
329329 break
330330 case ' 按片名' :
You can’t perform that action at this time.
0 commit comments