diff options
Diffstat (limited to 'client/src/store')
-rw-r--r-- | client/src/store/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/store/index.js b/client/src/store/index.js index 2454977..3d612c7 100644 --- a/client/src/store/index.js +++ b/client/src/store/index.js @@ -11,7 +11,7 @@ export default createStore({ return state.products; }, getCart(state) { - return state.cart; + return state.cart.sort((x, y) => x.name > y.name); }, getCartSize(state) { let sum = 0; |