aboutsummaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/store/index.js2
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;