fixes BUG-54091: Cannot filter P&E grids by a field in descending criteria
Description
In the following cases the sortBy property was not being identified properly as a property that references to a grid field:
- When sorting descending, because the sortBy property starts with "-"
- When sorting by a display field of a grid field and the name of that display field is not included in the datasource fields. This is the case of some special property fields (product characteristic property fields)
Try-run: https://builds.openbravo.com/view/try/job/try-init/3104/
Edited by Augusto Mauch