added method for using permutation ids to reorder fasta array directly