runs samples in sorted order