Sort on order to keep items in Lines

This was causing a bug where the post items would end up in various
orderes based on the last visit. This sorts them explicitly.