# Plot Facets Sorting

**URL:** https://talk.observablehq.com/t/plot-facets-sorting/7258
**Category:** Help
**Created:** [November 8, 2022, 4:16pm UTC](https://talk.observablehq.com/t/plot-facets-sorting/7258 "2022-11-08T16:16:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jchrist](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jchrist](https://talk.observablehq.com/u/jchrist)
#### Post date: [November 8, 2022, 4:16pm UTC](https://talk.observablehq.com/t/plot-facets-sorting/7258/1 "2022-11-08T16:16:50Z")

</div>

I want to define in which way the facets are sorted (see cell facet). For that I created the cell named produkte. How can I do that? Here is my notebook: [Welthandel / RND / Observable](https://observablehq.com/@rnd/welthandel)

---

<div class="post-metadata">

### Author: ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)
#### Post date: [November 8, 2022, 4:48pm UTC](https://talk.observablehq.com/t/plot-facets-sorting/7258/2 "2022-11-08T16:48:00Z")

</div>

You can sort the facet by specifying a facet domain computed outside the plot:  
`fy: {domain: produkte}`.

---

<div class="post-metadata">

### Author: ![jchrist](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jchrist](https://talk.observablehq.com/u/jchrist)
#### Post date: [November 9, 2022, 7:05am UTC](https://talk.observablehq.com/t/plot-facets-sorting/7258/3 "2022-11-09T07:05:48Z")

</div>

thank you, works great!
