Get the correct DB column name on filter/ sort by property

#340
This test is relying on auto-created concrete user ids. We should only care about the ordering:

```php
$this->assertEqual($result[0]['user']['id'], max($user1->uid, $user2->uid), 'List sorted by the "author" entity metadata wrapper property, which maps to the "uid" DB column name.');
```