A mess with sorting a connected date column

By the looks of it, your formula returns a list of dates (even though it only contains a single date). Try adding .First() at the end and it should work.

See this

And this