Step 3: On the right corner, move the cursor on the category, two vertical lines will appear prior to category name.
Step 4: You can rearrange the position of the categories by clicking and dragging the two vertical lines. Reordering the categories will cause the category colors to reset.