Answers.Body: <p>Based on Brandon's answer <a href="https://craftcms.stackexchange.com/a/19310/5275">here</a>, this is currently not a feature of Craft CMS (as of v3.0.34).</p>
  
  <p>If you need this functionality, I'd look into doing one of the following:</p>
  
  <ul>
  <li>As mentioned in the comments and in Brandon's answer (linked above), create a matrix field with a block containing a category field that is limited to one category. This will allow you to add multiple categories but be able to rearrange the matrix blocks as needed (thereby changing the order of the categories).</li>
  <li>Build your own plugin to achieve this functionality. Also check the current list of <a href="https://plugins.craftcms.com/" rel="nofollow noreferrer">available plugins</a>, as it's possible someone else has already created a plugin to achieve this.</li>
  <li>Open an issue on the <a href="https://github.com/craftcms/cms/issues" rel="nofollow noreferrer">Craft CMS repo</a> (based on Brandon's answer though, seems like P&amp;T don't really think selected categories need to get reordered, so not sure how far you'll get with this unless P&amp;T have changed their minds).</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-12T15:59:56.597Z
Answers.LastActivityDate: 2018-12-12T15:59:56.597Z
Answers.UserDisplayName: Jalen Davenport
Body: <p>I'm looking to reorder my selected categories within a category field. I'm hoping this is possible because the order an editor selects these categories is important, primarily for the <code>.first()</code> category.</p>
  
  <p>This functionality is currently possible using the entries fieldtype:</p>
  
  <p><img src="https://cl.ly/0x0i3z2E0Z2d/Screen%20Recording%202017-02-06%20at%2004.15%20PM.gif" alt="reorder entries"> </p>
  
  <p>But not for the categories fieldtype: </p>
  
  <p><img src="https://cl.ly/1Y1q3X3k2g12/Screen%20Recording%202017-02-06%20at%2004.55%20PM.gif" alt="reorder categories"></p>
  
  <p><strong>Edit:</strong> The order is important here because this field determines where a given piece of content shows up on the site. Our main navigation is defined by these categories. </p>
  
  <p>For instance, if a piece of content is tagged with "Lifelong Health" and "Health Conditions", but the content editor only wants it to show up on the "Lifelong Health" page.</p>
  
  <p>We want an editor to be able to specify multiple categories however, because we have some robust related category action going on, and we have plans on adding in some personalization in a later phase. Having these robust relationships is vital.</p>
  
  <p>In the interim, we've created a second field "Secondary Categories" that an editor can select, and limited the "Category" field to only one selection; but ultimately we'd like to be able to reorder the categories in one field.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-10T09:18:15.067Z
Comments.Text: Can you not just use a structure instead of categories? And related entries rather than a category field....
Comments.UserDisplayName: j00lz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-10T13:00:24.327Z
Comments.Text: Alternately you could also create a matrix field with a block holding a category field with max. 1 category. Then you can reorder each block as you wish.
Comments.UserDisplayName: kant312
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-12T13:06:23.177Z
Comments.Text: Thanks @Kant312 that last idea actually just might work. I think I can do that with minimal effort on readjusting my templates
Comments.UserDisplayName: Rob Erskine
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-16T16:30:57.627Z
Comments.Text: Linked question, with a bit of explanation from Brandon Kelly in case it's of interest! https://craftcms.stackexchange.com/questions/19308/custom-category-order-in-a-categories-field
Comments.UserDisplayName: Mike Vaux
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-08T07:37:58.617Z
Comments.Text: You can't reorder the chosen categories. You can however, select them in the right order. Could you provide some more information on why the order is important, maybe there are better solutions to the bigger issue here.
Comments.UserDisplayName: Jan_dh
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-08T13:32:32.280Z
Comments.Text: Hey @Jan_dh. When I remove all selected categories, and try to add them again, it looks like they always show up in the same order, no matter how I select them. This appears to be how they are laid out as a structure under the categories page in the CMS. https://cl.ly/051G173I0T2L I've gone ahead and updated my question as to why the order is important.
Comments.UserDisplayName: Rob Erskine
Tags: <categories><fieldtypes>
Title: Reorder selection of categories in category fieldtype
ThreadText: # Reorder selection of categories in category fieldtype
  
  (Asked by: username_0 on 2017-02-06)
  
  I'm looking to reorder my selected categories within a category field. I'm hoping this is possible because the order an editor selects these categories is important, primarily for the `.first()` category.
  
  This functionality is currently possible using the entries fieldtype:
  
  ![reorder entries](https://cl.ly/0x0i3z2E0Z2d/Screen%20Recording%202017-02-06%20at%2004.15%20PM.gif)
  
  But not for the categories fieldtype:
  
  ![reorder categories](https://cl.ly/1Y1q3X3k2g12/Screen%20Recording%202017-02-06%20at%2004.55%20PM.gif)
  
  **Edit:** The order is important here because this field determines where a given piece of content shows up on the site. Our main navigation is defined by these categories.
  
  For instance, if a piece of content is tagged with "Lifelong Health" and "Health Conditions", but the content editor only wants it to show up on the "Lifelong Health" page.
  
  We want an editor to be able to specify multiple categories however, because we have some robust related category action going on, and we have plans on adding in some personalization in a later phase. Having these robust relationships is vital.
  
  In the interim, we've created a second field "Secondary Categories" that an editor can select, and limited the "Category" field to only one selection; but ultimately we'd like to be able to reorder the categories in one field.
  
  **Tags:** categories, fieldtypes
  
  > **Comments:**
  > **username_4**: You can't reorder the chosen categories. You can however, select them in the right order. Could you provide some more information on why the order is important, maybe there are better solutions to the bigger issue here.  
  > **username_0**: Hey @username_4. When I remove all selected categories, and try to add them again, it looks like they always show up in the same order, no matter how I select them. This appears to be how they are laid out as a structure under the categories page in the CMS. https://cl.ly/051G173I0T2L I've gone ahead and updated my question as to why the order is important.  
  > **username_1**: Can you not just use a structure instead of categories? And related entries rather than a category field....  
  > **username_2**: Alternately you could also create a matrix field with a block holding a category field with max. 1 category. Then you can reorder each block as you wish.  
  > **username_0**: Thanks @username_2 that last idea actually just might work. I think I can do that with minimal effort on readjusting my templates  
  > **username_3**: Linked question, with a bit of explanation from Brandon Kelly in case it's of interest! https://craftcms.stackexchange.com/questions/19308/custom-category-order-in-a-categories-field  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_5 on 2018-12-12. Score: 1
  
  Based on Brandon's answer [here](https://craftcms.stackexchange.com/a/19310/5275), this is currently not a feature of Craft CMS (as of v3.0.34).
  
  If you need this functionality, I'd look into doing one of the following:
  
  * As mentioned in the comments and in Brandon's answer (linked above), create a matrix field with a block containing a category field that is limited to one category. This will allow you to add multiple categories but be able to rearrange the matrix blocks as needed (thereby changing the order of the categories).
  * Build your own plugin to achieve this functionality. Also check the current list of [available plugins](https://plugins.craftcms.com/), as it's possible someone else has already created a plugin to achieve this.
  * Open an issue on the [Craft CMS repo](https://github.com/craftcms/cms/issues) (based on Brandon's answer though, seems like P&T don't really think selected categories need to get reordered, so not sure how far you'll get with this unless P&T have changed their minds).
  
  
  ---
  
  