sort fieldbook data by id before processing (inserted row error corrected)