Sort entries in the flat view.