fix sorting by related object name
Merge pull request #4 from diaborn19/patch-4

fix sorting by related object name