Here\'s a example of what I want to do
spam_list = [\"We\", \"are\", \"the\", \"knights\", \"who\", \"say\", \"Ni\"] spam_order = [0,1,2,4,5,6,3] spam_list.m
You may use numpy.
import numpy as np spam_list = list(np.array(spam_list)[spam_order])