added optimisations for sorting (compact) read end objects