function name_new=imag_file_sort(name_old)
%
% Sorting matrix of IMAG file name ("MONDDYY.OBS")
%
%   name_new=imag_file_sort(name_old);

[ND,tmp]=size(name_old);

tmp=[name_old(:,4:5) char(ones(ND,1)*45)...
     name_old(:,1:3) char(ones(ND,1)*45)...
     name_old(:,6:7)];
SerialDateOld=datenum(tmp);
[SerialDateNew,K]=sort(SerialDateOld);
name_new=name_old(K,:);
