# Sorted Merge

## <img src="/files/ClX27BBeBqKwIX0aPpvP" alt="" data-size="line"> Sorted Merge

### Description <a href="#description" id="description"></a>

The Sorted Merge transform merges rows coming from multiple input transforms providing these rows are sorted themselves on the given key fields.

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | X            |
| Flink      | X            |
| Dataflow   | X            |

### Options

| Option         | Description                                                                                                                               |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Transform name | Name of the transform this name has to be unique in a single pipeline.                                                                    |
| Fields table   | Specify the field name and sort direction (ascending/descending); click Get Fields to retrieve a list of fields from the input stream(s). |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/sortedmerge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
