sortResources

fun sortResources(resources: List<Resource>?, fhirPathExpression: String, dataType: String, order: String = Order.ASCENDING.name): List<Resource>?

This function sorts resources by comparing the values extracted by FHIRPath using the fhirPathExpression. The dataType is required for ordering of the items. You can optionally specify the Order of sorting.