Update pageable create logic, so @last_page is last page of each subject sorted by sequence_id