Fixed sorting of reading history