With its user-centric approach, my understanding of RTL is that testing sorting of elements should look something like.

```js
const foo = queryByText('foo');
const bar = queryByText('bar');
expect(foo).toBeInTheDocument();
expect(bar).toBeInTheDocument();
expect(foo).toShowBefore(bar); // THIS IS MY PSEUDOCODE

```

However, I couldn't find a `.toShowBefore()` or equivalent function in RTL.
What's the correct way to test that content is displayed in a certain order?