// get inkdrop redux actions
let { actions } = require('inkdrop')
// find the layout of the sidebar menu
let layoutSidebarMenu = [...inkdrop.store.getState().layouts['sidebar-menu']]
// find the index of the status section menu item
let idxSectionStatus = layoutSidebarMenu.indexOf('SideBarMenuSectionStatus')
// find the index of the notebook section menu item
let idxSectionNotebooks = layoutSidebarMenu.indexOf('SideBarMenuSectionNotebooks')
// extract the section menu items
let menuStatus = layoutSidebarMenu.splice(idxSectionStatus, 2)
// insert the section menu items before the notebook menu item
layoutSidebarMenu.splice(idxSectionNotebooks, 0, ...menuStatus)
// update the layout
inkdrop.store.dispatch(actions.layouts.setComponents('sidebar-menu', layoutSidebarMenu))