Sort the extracted tuples from the diff by timestamp.