Sort items by name (default) or last modified date