Sorting an array but only for values above zero?

Sorting an array but only for values above zero?

If I have an array,

myArray = new Array(0,1,8,3,4,10,0,0,0);

how can I sort it so I have this as result;

myArray = new Array(1,8,3,4,10,0,0,0,0);

With the '0s' at the end of the array rather than the start.

I have tried may ways but keep getting stuck.

Thanks in advance;