From: Alex-Laptop Date: Wed, 18 Sep 2019 04:27:23 +0000 (-0700) Subject: changed default sort order for easier usage X-Git-Tag: v1.0.0~42 X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=10713401bac640fd10d541f57aea56339abf9c64;p=workouts changed default sort order for easier usage --- 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]; }