When using TFDTable in LDW mode, descending sort of fields results in duplicate rows. For example:
TFDTable.TableName is set to a VIEW name (not a tablename)
TFDTable.UpdateOptions.KeyFields is set to the primary key in the VIEW base table.
TFDTable.IndexFieldNames is set to 'PERS_NAME:A'.
shows a correct resultset without any duplicates. If I change IndexFieldnames to 'PERS_NAME:D', every record returned by the view is showed up two or tree times.
How to avoid these duplicates? It only happens when sorting the table in descending order, regardless of which field I use for sorting.
UPDATE: You can find a sample project to reproduce the problem on github: https://github.com/cytrinox/firedac-sort-issue or download the project via https://github.com/cytrinox/firedac-sort-issue/archive/master.zip