Behave more deterministically by sorting paths