Can now sort texts in a genre by newest, but the code needs a lot of drying up.