microsoft / fhir-server

A service that implements the FHIR standard
MIT License
1.21k stars 519 forks source link

Fix descending sort #4661

Closed LTA-Thinking closed 1 month ago

LTA-Thinking commented 1 month ago

Description

This fixes a bug where if descending sort is used and no resources match the sort field then the second phase of the sort, which gets fields that don't have the sort field, won't run.

Related issues

Addresses Bug 126375: Descending sort will return no results if no data has the search field

Testing

Describe how this change was tested.

FHIR Team Checklist

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)