Fixed ordering in AbstractRepository.