oops: Fix regression from e99d13642

Use the cdata field when searching and sorting the ticket listing on the
client side.
Merge pull request #1379 from greezybacon/issue/1364

oops: Fix regression from e99d13642

Reviewed-By: Peter Rotich <peter@osticket.com>