Hi! Using this template as a building block to a vision I have. In doing that, I ran across an issue where when sorting an account, the sorting only took the date into account, & not the time. I changed the formula in A13 to this to fix it so it sorts in chronological order including the time.
=filter(sort(iferror(sort(filter(sortn(sort(filter(H13:P,(H13:H>=L2),(I13:I<=L3),(if(isblank(D6),H13:H>1/1/1900,K13:K=D6)),(if(isblank(D5),H13:H>1/1/1900,L13:L=D5)),(if(isblank(B5),H13:H>1/1/1900,O13:O=B5)),(if(isblank(B6),H13:H>1/1/1900,N13:N=B6))),1,false),9^9,2,1,true,3,true,4,true),{1,1,0,1,1,0,1,1,1}),1,true,3,true,2,true),"Nothing returned based on filter conditions."),1,if(F5="Descending",FALSE,TRUE)),{0,1,1,1,1,1,1})