fix sorting on lectures page