diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java index 193c5cee256..e9877da7393 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java @@ -1585,7 +1585,7 @@ public class SearchBuilder implements ISearchBuilder { String sql = localReferenceQuery + " UNION " + canonicalQuery.getLeft(); - if(myDialectProvider.getDialect() instanceof SQLServerDialect) { + if (myDialectProvider.getDialect() instanceof SQLServerDialect) { sql += " order by r." + findPidFieldSqlColumn; }