reverse docs array