Create helper column d
d2=text(left(substitute(a2,"-",rept(" ",10)),10),"0000")&iferror("-"&if(len(lookup(10^10,left(mid(substitute(a2,"-",rept(" ",10)),10,15),{1,2,3,4,5,6})+0))=1,0,""),"")&trim(mid(substitute(a2,"-",rept(" ",10)),10,15))
=text(left(substitute(a2,"-",rept(" ",10)),10),"0000")&iferror("-"&if(len(lookup(10^10,left(mid(substitute(a2,"-",rept(" ",10)),10,15),{1,2,3,4,5,6})+0))=1,0,""),"")&trim(mid(substitute(a2,"-",rept(" ",10)),10,15))
try this and copy to the end
now sort data based on column d
Bookmarks