# Cannot reorder categories

**URL:** https://meta.discourse.org/t/cannot-reorder-categories/53614
**Category:** Bug
**Created:** [December 1, 2016, 5:36am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614 "2016-12-01T05:36:15Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![MagnumDopus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/magnumdopus/32/64599_2.png) [@MagnumDopus](https://meta.discourse.org/u/MagnumDopus)
#### Post date: [December 1, 2016, 5:36am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/1 "2016-12-01T05:36:16Z")

</div>

Yes, I have set fixed category positions in the settings screen.

Then when I go to configure the order, no matter what order I set them to, no matter what numbers I assign, I can never save it.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [December 1, 2016, 5:49am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/2 "2016-12-01T05:49:34Z")

</div>

Can you repro this @techapj?

---

<div class="post-metadata">

### Author: ![MagnumDopus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/magnumdopus/32/64599_2.png) [@MagnumDopus](https://meta.discourse.org/u/MagnumDopus)
#### Post date: [December 1, 2016, 5:52am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/3 "2016-12-01T05:52:42Z")

</div>

Just to be clear:  
v1.7.0.beta8 +40

Take this screenshot for example, I have manually reversed the order yet the button is still greyed out.

 ![](https://global.discourse-cdn.com/meta/original/4X/d/b/8/db8124bfa393594995617c2bc3448aaa2024e96d.png)  
I was able to apply the change, but cannot save it and my order is never actually altered. Sorry for the brief bug report at first.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [December 1, 2016, 7:47am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/4 "2016-12-01T07:47:50Z")

</div>

Yes I can repro this on latest Discourse version. Reorder categories modal is not even showing up on my development instance.

I think [`reorder-categories`](https://github.com/discourse/discourse/blob/5dbd6a304bed5400be481d71061d3e3ebb4d6785/app/assets/javascripts/discourse/controllers/reorder-categories.js.es6) controller is broken after latest Ember upgrade. Can you have a look @eviltrout?

---

<div class="post-metadata">

### Author: ![MagnumDopus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/magnumdopus/32/64599_2.png) [@MagnumDopus](https://meta.discourse.org/u/MagnumDopus)
#### Post date: [December 1, 2016, 7:49am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/5 "2016-12-01T07:49:09Z")

</div>

Odd that its not even showing up.

Quick question, I followed the instructions on how to set up discourse and ended up on a beta branch, I’d much prefer a stable non-beta, is there anyway to downgrade, or do a manual install for a specific version (I am a luddite apologies)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [December 1, 2016, 7:51am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/6 "2016-12-01T07:51:09Z")

</div>

See:

> [@Configure a supported tracking branch to get Discourse software updates](https://meta.discourse.org/t/change-tracking-branch-for-your-discourse-instance/17014):
>
> bookmark This guide explains how to configure a supported tracking branch for your Discourse instance to manage software updates. person_raising_hand Required user level: System Administrator warning Console access is required. Managing your Discourse instance’s tracking branch determines the frequency and type of updates you receive. This guide explains the different tracking branches available and provides a step-by-step approach to changing the branch on your setup. Summary Disco…

You want to be on `stable` branch.

---

<div class="post-metadata">

### Author: ![MagnumDopus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/magnumdopus/32/64599_2.png) [@MagnumDopus](https://meta.discourse.org/u/MagnumDopus)
#### Post date: [December 1, 2016, 8:11am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/7 "2016-12-01T08:11:22Z")

</div>

See I’m confused, apparently I am already running tests-passed yet my version is clearly a beta version…

I changed the app.yml but when I do a git status it shows me as still on origin/master.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [December 1, 2016, 8:12am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/8 "2016-12-01T08:12:28Z")

</div>

In `app.yml` change

```plaintext
version: tests-passed

```

to

```plaintext
version: stable

```

Then run these commands:

```plaintext
git pull
./launcher rebuild app

```

I hope it’s clear now.

---

<div class="post-metadata">

### Author: ![MagnumDopus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/magnumdopus/32/64599_2.png) [@MagnumDopus](https://meta.discourse.org/u/MagnumDopus)
#### Post date: [December 1, 2016, 8:14am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/9 "2016-12-01T08:14:57Z")

</div>

Apologies, I must be doing something incorrect. In app.yml I have changed it to both tests-passed and stable, saved the file and performed a pull.

However doing a git status still shows me on origin/mainline.

Doing a git branch -a shows I am on remotes/origin/HEAD → origin/master.

I am sure I am doing something wrong, I’m sorry, but not sure exactly what.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [December 1, 2016, 8:17am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/10 "2016-12-01T08:17:10Z")

</div>

> [@MagnumDopus](#):
>
> However doing a git status still shows me on origin/mainline.

That status is for [discourse\_docker](https://github.com/discourse/discourse_docker) repository. Discourse version will be reflected in source of `/latest` page after your perform rebuild.

---

<div class="post-metadata">

### Author: ![MagnumDopus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/magnumdopus/32/64599_2.png) [@MagnumDopus](https://meta.discourse.org/u/MagnumDopus)
#### Post date: [December 1, 2016, 8:18am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/11 "2016-12-01T08:18:20Z")

</div>

Ahh I see, again sorry, what is the differnece between tests-passed and stable? The how-to link provided earlier suggested test-passed. Just curious, I don’t see stable mentioned in that thread at all.

Looks like tests-passed kept me on the same version but stable fixed it for me, cheers!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [December 1, 2016, 9:12am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/12 "2016-12-01T09:12:48Z")

</div>

Note that you cannot _downgrade_ versions however. So if you are on a new version, changing to an older one.. won’t work.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [December 1, 2016, 4:34pm UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/13 "2016-12-01T16:34:49Z")

</div>

There was definitely an Ember regression here with `SortableMixin` which is no longer present. I’ve fixed it here:

[https://github.com/discourse/discourse/commit/69ff0e48b4b50ad3df78dcb4f52915eef6850de9](https://github.com/discourse/discourse/commit/69ff0e48b4b50ad3df78dcb4f52915eef6850de9)

Having said that, I’m not 100% sure that fixes the problem in the OP. I found the interface a little confusing, but when I reordered categories, I first had to hit “Fix Positions” before I could hit “Save Order” which was unintuitive. Once I did that though, things seemed to save?

---

<div class="post-metadata">

### Author: ![MagnumDopus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/magnumdopus/32/64599_2.png) [@MagnumDopus](https://meta.discourse.org/u/MagnumDopus)
#### Post date: [December 1, 2016, 5:03pm UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/14 "2016-12-01T17:03:40Z")

</div>

Well I went from 1.7.0 Beta to 1.6.8, and am seeing no ill effects.

Would you suggest doing a clean install? I am not opposed to that, it is a brand new site so I would not be losing much, if you think it would be safer.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 1, 2016, 9:00pm UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/15 "2016-12-01T21:00:10Z")

</div>

Yeah this dialog has always been a voodoo salad

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [December 4, 2016, 9:28am UTC](https://meta.discourse.org/t/cannot-reorder-categories/53614/16 "2016-12-04T09:28:09Z")

</div>


