mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-07 09:02:27 +00:00
Fix bug that only sorts filtered topics rather than all topics
This commit is contained in:
@@ -58,7 +58,7 @@ export default {
|
|||||||
localStorage.setItem("sortColumn", col);
|
localStorage.setItem("sortColumn", col);
|
||||||
this.sortColumn = col;
|
this.sortColumn = col;
|
||||||
|
|
||||||
this.filteredTopics.sort(function (a, b) {
|
this.topics.sort(function (a, b) {
|
||||||
if (a[col] > b[col]) {
|
if (a[col] > b[col]) {
|
||||||
return ascending ? -1 : 1;
|
return ascending ? -1 : 1;
|
||||||
} else if (a[col] < b[col]) {
|
} else if (a[col] < b[col]) {
|
||||||
|
Reference in New Issue
Block a user