# Sorting by any topic list column prevents loading more topics

**URL:** https://meta.discourse.org/t/sorting-by-any-topic-list-column-prevents-loading-more-topics/27802
**Category:** Bug
**Created:** [April 21, 2015, 2:11pm UTC](https://meta.discourse.org/t/sorting-by-any-topic-list-column-prevents-loading-more-topics/27802 "2015-04-21T14:11:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jens](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jens](https://meta.discourse.org/u/jens)
#### Post date: [April 21, 2015, 2:11pm UTC](https://meta.discourse.org/t/sorting-by-any-topic-list-column-prevents-loading-more-topics/27802/1 "2015-04-21T14:11:46Z")

</div>

Hi!

When I tried sorting the topic list by category today, I noticed several things off:

1. The list is sortable by category at all. I don’t really see the use case.

2. Opening [meta.discourse.org](http://meta.discourse.org) and clicking on the category header sorts the list by category. Scrolling down does not load additional topics.

3. Opening [meta.discourse.org](http://meta.discourse.org) and clicking on “latest”, then on the category header does not sort the list, but generates the javascript error

4. Opening `meta.discourse.org/?order=category` directly, displays the sorted list. Scrolling down loads additional topics as expected. When I click the sort button now, the sort order is correctly reversed, but scrolling down does not load additional topics.

---

<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: [April 21, 2015, 10:52pm UTC](https://meta.discourse.org/t/sorting-by-any-topic-list-column-prevents-loading-more-topics/27802/2 "2015-04-21T22:52:11Z")

</div>

This is true @eviltrout sorting by any column disables further loading as you scroll down. Is that intended?

---

<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: [April 21, 2015, 10:53pm UTC](https://meta.discourse.org/t/sorting-by-any-topic-list-column-prevents-loading-more-topics/27802/3 "2015-04-21T22:53:21Z")

</div>

Nope, this used to 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: [April 22, 2015, 4:53pm UTC](https://meta.discourse.org/t/sorting-by-any-topic-list-column-prevents-loading-more-topics/27802/4 "2015-04-22T16:53:47Z")

</div>

Got a fix for it here:

[https://github.com/discourse/discourse/commit/56cd381ff89e431c9d5921cbbc0954d63a8dd35d](https://github.com/discourse/discourse/commit/56cd381ff89e431c9d5921cbbc0954d63a8dd35d)

---

<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: [April 22, 2015, 4:53pm UTC](https://meta.discourse.org/t/sorting-by-any-topic-list-column-prevents-loading-more-topics/27802/5 "2015-04-22T16:53:52Z")

</div>


