fix(orderBy): compare timestamps when sorting date objects

Fixes #10512