On-populate-details fires when Form Builder needs to fetch records into a block, while On-clear-details fires when Form Builder needs to clear those records
To answer the question the On-populate-details fires first, and On-clear-details fires afterwards.