# Sorting of fields in the OTRS article

#### Custom sort:

You can use the "order\_by" and "order" params. You can find more information here: [Form configuration - file structure and general configuration](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/form-configuration---file-structure-and-general-configuration "Form configuration - file structure and general configuration")

If the field does not have the required parameter (e.g. "order"), it will be added at the end.

#### By default:

Fields are sorted by identifiers, if you want the fields to be in a certain order, you must name them accordingly.

***Example:***

```JSON
{
  "size": "s12 m6 offset-m3",
  "type": "number",
  "id": "2_FieldID",
  "label": "Number",
  "validate": [
    ""
  ],
  "icon": "filter_1",
  "otrs_visible": "all",
  "hidden": false,
  "value": ""
},
{
  "size": "s12 m6 offset-m3",
  "type": "textarea",
  "id": "1_FieldID",
  "label": "Textarea",
  "validate": [
    ""
  ],
  "icon": "announcement",
  "otrs_visible": "all",
  "hidden": false,
  "value": ""
}
```

<p class="callout info">This configuration will cause the field "1\_FieldID" to be displayed above "2\_FieldID" in the OTRS article request.</p>