Sort list 1 (wich contains a substring of list 2) according to the order of list 2

If you want to do both those things you’re in the same boat as I am now: