tiff: add helper function for fill_order case