Multiple sampling rounds for a single depth were not being written to the correct column. Added sort-by-date to resolve problem.