diff --git a/frontend/src/store/context/actions.js b/frontend/src/store/context/actions.js index bc644a688c..38fb03dc6e 100644 --- a/frontend/src/store/context/actions.js +++ b/frontend/src/store/context/actions.js @@ -19,9 +19,9 @@ export function fetchContext() { return dispatch => api .fetchAll() - .then(json => { + .then(json => { json.sort((a, b) => a.sortOrder - b.sortOrder); - dispatch(receiveContext(json)) + dispatch(receiveContext(json)); }) .catch(dispatchAndThrow(dispatch, ERROR_RECEIVE_CONTEXT)); }