orderBy fix for db search, was searching by property object, not property name