#4688 getting the right way the field value
Merge pull request #4690 from dotCMS/issue-4688-es-sort-script-broken

#4688 getting the right way the field value