# Ordering, pairing and grouping

> How EduBase ordering, pairing and grouping questions work, and how to enter items, pairs and groups in the question editor, an upload or the API.

These three EduBase question types ask the participant to arrange items instead of typing: put them in order, match each to its pair, or sort them into groups. Items are shown in random order every time.

## Ordering

The participant drags the items into the right order.

- In the editor, enter the items under **Correct order**, in the correct order. EduBase shuffles them for the participant.
- Suits steps of a procedure, events on a timeline, or values to rank.
- With [partial credit](https://help.edubase.net/questions/scoring/#partial-credit), a partly correct order earns part of the points.

## Pairing

The participant matches each item with its pair, for example a hazard symbol with its meaning.

- In the editor, enter each **Item** with its **Pair**.
- The pairs are shuffled, so their order gives nothing away.
- With partial credit, each correct pair counts toward the points.

## Grouping

The participant sorts each item into one of several groups, for example materials into "recyclable" and "hazardous waste".

- In the editor, enter each **Item** with its **Class** (the group it belongs to). "Same groups appear only once": items of the same group share one group box.
- With partial credit, each item in the right group counts toward the points.

## In an upload or over the API

| Type value | `ANSWER` holds | `ANSWER_LABEL` holds |
|---|---|---|
| `ORDER` | The items in the correct order, separated by `&&&` | |
| `PAIRING` | The pair of each item, separated by `&&&` | The items, in the same order |
| `GROUPING` | The group of each item, separated by `&&&` | The items, in the same order |

`ANSWER` and `ANSWER_LABEL` must have the same number of values for pairing and grouping; otherwise the question cannot be generated. Example of a grouping question:

```text
ANSWER:        recyclable &&& recyclable &&& hazardous waste
ANSWER_LABEL:  cardboard &&& glass bottle &&& paint can
```

See [Import questions in bulk](https://help.edubase.net/questions/import/) and [The EDU text format](https://help.edubase.net/questions/edu-format/).

## Tips

- Use images in items with `[[IMAGE:file.png]]` to pair pictures with names. See Images, audio, video, LaTeX and graphs.
- These types can be generated by AI from a document as well. See [Generate questions from documents and review them](https://help.edubase.net/questions/ai-generated/).

## Related

- [Question types at a glance](https://help.edubase.net/questions/types/)
- [Tolerance, partial credit, penalties, rubrics and skills](https://help.edubase.net/questions/scoring/)
- [Create a question](https://help.edubase.net/questions/create/)
