title: How to sort x axis in sns.lineplot?
body: <p>I would have a following code that generates this lineplot:</p>
  <p><a href="https://i.stack.imgur.com/gQPKZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gQPKZ.png" alt="enter image description here" /></a>
  But I would like to sort x axis to have <code>1, 2, 3, 0, 4, 5, 6, 7, 8, 9</code>. Moreover, I need to have 0 in the 4/5 between 3 and 4. I tried this:</p>
  <p>df_sort = df.sort_values(
  &quot;ab_test&quot;,
  key=lambda col: col.map(
  {
  &quot;0&quot;: 14, # see how I insert 0 between 3 and 4
  &quot;1&quot;: 0,
  &quot;2&quot;: 5,
  &quot;3&quot;: 10,
  &quot;4&quot;: 15,
  &quot;5&quot;: 20,
  &quot;6&quot;: 25,
  &quot;7&quot;: 30,
  &quot;8&quot;: 35,
  &quot;9&quot;: 40,
  }
  ),
  )</p>
  <p>But when I try to plot it using:</p>
  <pre class="lang-py prettyprint-override"><code>sns.lineplot(x=&quot;ab_test&quot;, y=&quot;count&quot;, data=abtest_sort, hue=&quot;cena_percentil&quot;)
  </code></pre>
  <p>it gives me the same result as before. How can I fix it, please?</p>