Sort the sidebar list so it doesn't jump around