Extend LAG and LEAD ordering with samID in the definition of view basesCover.