diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java index 72a0a6bb5d1e3..3f0b755be1ab0 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java @@ -151,9 +151,7 @@ public List> findBuildTimeWriters(Class entityType, Runt } } - var resourceWriters = findResourceWriters(writers, klass, produces, runtimeType); - resourceWriters.sort(new ResourceWriter.ResourceWriterComparator(produces)); - return toMessageBodyWriters(resourceWriters); + return toMessageBodyWriters(findResourceWriters(writers, klass, produces, runtimeType)); } protected List findResourceWriters(QuarkusMultivaluedMap, ResourceWriter> writers, Class klass,