bugfix for not sorted diary list