Read the opinion carefully, it explicitly says that the order of events is not justification enough. You are right in saying that this doesn't prohibit dog sniffs in all traffic stops. Period. However, you are wrong that stating that a dog sniff can be justified by simple ordering, see page 8:
>>The critical question, then, is not whether the dog sniff occurs before or after the officer issues a ticket, as JUSTICE ALITO supposes, post, at 2–4, but whether conducting the sniff “prolongs”—i.e., adds time to—“the stop,” supra, at 6.
and page 7:
>>a dog sniff, unlike the routine measures just mentioned, is not an ordinary incident of a traffic stop
SCOTUS is in fact saying that a dog sniff must be supported by what they call "individualized suspicion".