Python Sort Array By Another Arraylist Syntax