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