Travis fix

Travis would sometimes throw an error because the order of two lists might not match. Sort the lists so that this doesn't happen.