Put title and date sorting in the session