sort sections by key