I'll address that. To get a DNA order at sentencing, the offence has to be either a primary offence or a secondary offence. If it is a primary offence, then the judge shall make a DNA order. If it is a secondary offence, the Crown can request that a DNA order be made, and it's up to the judge to decide whether to make that order.
Within the secondary offences, there are a number that are called listed offences. I'm not quite sure offhand how many there are, but let's say there could be 10 or 15. They are identified by section number.
There are also some offences that we may call generic. They are defined as being indictable offences for which the period of imprisonment is 10 years or less. However, the Crown must have proceeded by indictment.