sorting number via descending order without 0
<p>I need to make numbers in descending order but when it reaches 0, the number should turn into 9..</p>

<p>for example, let say <code>num</code> is 2, the order should be <code>2, 1, 9, 8, 7, 6, 5, 4, 3</code></p>

<pre><code>var num = 2;
$(function() {
        $(".one").html(num);
        $(".two").html((num-1)%9);
        $(".three").html((num-2)%9);
        $(".four").html((num-3)%9);
        $(".five").html((num-4)%9);
        $(".six").html((num-5)%9);
        $(".seven").html((num-6)%9);
        $(".eight").html((num-7)%9);
        $(".nine").html((num-8)%9);
});​
</code></pre>

<p>But in the code there is 0 and negative numbers, how do i overcome that? </p>

<p><a href="http://jsfiddle.net/yqGV7/" rel="nofollow">http://jsfiddle.net/yqGV7/</a></p>

<p>Thank you for your assistance.</p>
