function x=reorder(y)

%Just a simple function to reorder a vector from largest to smallest
%element.

x=y;

for i=1:1:max(size(x))-1
v=x(i);
    
for n=i:1:max(size(x))
    if v<=x(n)
        v=x(n);
        N=n;
    else
    end
end

x(N)=x(i);
x(i)=v;

end