function  x= miscoesrt ( x)
 n = length(x);
 for ii= 1:n ;
  if mod(ii,2)==1
    for jj=1:2:n-1
       if (x(jj) > x(jj+1))
          temp=x(jj);
          x(jj)=x(jj+1);
          x(jj+1)=temp;
       end
    end
  else
    for jj=2:2:n-1
       if (x(jj) > x(jj+1))
          temp=x(jj);
          x(jj)=x(jj+1);
          x(jj+1)=temp;
       end
    end
  end
end
