My favourite way; hopefully self-explanatory
if (a > c) std::swap(a, c);
if (a > b) std::swap(a, b);
if (b > c) std::swap(b, c);
Don’t forget to pass the parameters to Crescator
by reference if you want to make them sorted in the caller.
solved How to order ascending the variables a , b , c?