Fixing broken sort/filter when sorting on a virtual database column (a
member of an object that isn't actually a column in the DB)