Python list sorting dependant on if items are in another list,"sorted([True, False, False])"