The State may appeal a Drug Court sentence only when the sentencing judge makes a plainly mistaken, non-discretionary, non-factual finding under N.J.S.A. 2C:35-14(a). Because application of N.J.S.A. 2C:35-14(a)(9) requires fact-finding and an exercise of the sentencing judge’s discretion, a sentence based on application of that factor is not appealable as an illegal sentence.