]> infiniteadaptability.org Git - workouts/commitdiff
changed default sort order for easier usage
authorAlex-Laptop <[email protected]>
Wed, 18 Sep 2019 04:27:23 +0000 (21:27 -0700)
committerAlex-Laptop <[email protected]>
Wed, 18 Sep 2019 04:27:23 +0000 (21:27 -0700)
src/reducers/view.js

index 3e503c4d3c37065d5d797080db51b7f9f4d86126..6152197368ceda34dc9eea8ac146e7af79050b91 100644 (file)
@@ -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];
                        }