In OPAC detail: $template->param( localimages => $biblio->cover_images ); We get local images in no particular order. In Staff detail: $template->param( localimages => $biblio->cover_images->search( {}, { order_by => [ \"COALESCE(itemnumber, 0, 1)", 'timestamp' ] } ), ); We order the images, first by itemnumber and secondary sort on timestamp. These should be the same so that the images appear the same in both staff/OPAC.