Basically keep the primes together and list in increasing order of the primes, but then within each prime go from big to small I think this is standard. But there are really two methods that you can write, this is the elementry divisor one, the other is invariant factors.

That way you group by the highest powers of all the available primes.

Notice so you cannot split that up from the one.