Sorting categories of CategoryAxis javafx
<p>I'm writing a javafx programme in which i need to show a LineChart with a CategoryAxis as x axis. I would like to make the different categories on the axis appear in a certain order. Is there any way to achieve this? Right now the order of the categories on my CategoryAxis depends on which order i enter the data.</p>

<p>Thanks!</p>