clear
clc
for i=1:1:10
    for j=1:1:10
        array(i,j)=floor(rand(1)*101);
    end
end

array=sortarray(array)