Reverted fix for fetching sort by value since it wont work when fetching the relationship values