Fix bug that only sorts filtered topics rather than all topics

This commit is contained in:
Dave Gallant
2023-01-07 19:52:28 -05:00
parent 6e22a3c2a4
commit 2ecfcdee83

View File

@@ -58,7 +58,7 @@ export default {
localStorage.setItem("sortColumn", col);
this.sortColumn = col;
this.filteredTopics.sort(function (a, b) {
this.topics.sort(function (a, b) {
if (a[col] > b[col]) {
return ascending ? -1 : 1;
} else if (a[col] < b[col]) {