Sorting on datetime field with @ cascade, creates panic

I have validated that this is a bug in the latest version. Accepting as issue. @hardik to prioritize