pf.R sort first by resample name