implementation of sorting by related object name
Merge pull request #1 from diaborn19/patch-1

implementation of sorting by related object name