fix(orderBy): compare timestamps when sorting date objects

Fixes #10512
Closes #10516