When a mag reaches level 50, it evolves according to the order of the 3 main stats and the character feeding it.

But what happens if the 3 main stats don't have an absolute order?

For instance, if I was feeding for the ultimate Mind mag and hit level 50 with 0 dex and 0 pow, would it evolve? If so, would it take the mind > dex > pow or the mind > pow > dex path??