hapreord-methods function

Reorders haplotypes according to the ordering factor