Add sort-order preference

Allow sorting in the main activity by creation/modification-time or
title.