Fixed automatic sorting by date. Fixes #36, broken by c88fb818cf9cc77bdd25c33ce0ca72cfa4bd5efa.