From 10713401bac640fd10d541f57aea56339abf9c64 Mon Sep 17 00:00:00 2001 From: Alex-Laptop Date: Tue, 17 Sep 2019 21:27:23 -0700 Subject: [PATCH] changed default sort order for easier usage --- src/reducers/view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/reducers/view.js b/src/reducers/view.js index 3e503c4..6152197 100644 --- a/src/reducers/view.js +++ b/src/reducers/view.js @@ -90,7 +90,6 @@ export default function view(state = defaultState,action) { return state; } case SORT_VIEW: - console.log(SORT_VIEW); if(action.key === void(0)) { return state; } @@ -109,7 +108,7 @@ export default function view(state = defaultState,action) { if((newSortKey[0] !== void(0))&&(newSortKey[0]==action.key)) { newSortOrder = (newSortOrder[0]=="asc")?["desc"]:["asc"]; } else { - newSortOrder = ["asc"]; + newSortOrder = ["desc"]; } newSortKey = [action.key]; } -- 2.39.5