# "Latest" on forum home displays last column sort

**URL:** https://meta.discourse.org/t/latest-on-forum-home-displays-last-column-sort/57520
**Category:** Bug
**Created:** [2017年二月17日 01:08 UTC](https://meta.discourse.org/t/latest-on-forum-home-displays-last-column-sort/57520 "2017-02-17T01:08:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![samliew](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samliew/32/120761_2.png) [@samliew](https://meta.discourse.org/u/samliew)
#### Post date: [2017年二月17日 01:08 UTC](https://meta.discourse.org/t/latest-on-forum-home-displays-last-column-sort/57520/1 "2017-02-17T01:08:02Z")

</div>

Steps to repro:

1. I have a browser bookmark/link/homepage for [https://meta.discourse.org/new?order=category](https://meta.discourse.org/new?order=category) (click on this link first)

2. Now click on “Latest”. Posts are sorted incorrectly. Have to click “Latest” a second time to reset sort order.

Expected:

Latest should be sorted by activity on first load.

---

<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: [2017年二月17日 01:21 UTC](https://meta.discourse.org/t/latest-on-forum-home-displays-last-column-sort/57520/2 "2017-02-17T01:21:16Z")

</div>

Note, you need to have at least 1 new topic for this to happen.

`order=category` is being passed implicitly somehow without being reflected in the url we should fix

---

<div class="post-metadata">

### Author: ![samliew](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samliew/32/120761_2.png) [@samliew](https://meta.discourse.org/u/samliew)
#### Post date: [2017年二月17日 01:35 UTC](https://meta.discourse.org/t/latest-on-forum-home-displays-last-column-sort/57520/3 "2017-02-17T01:35:26Z")

</div>

I prefer to view New posts by Category, could last sort order be saved separately for the different sections?

Latest  
New  
Unread  
Top

---

<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: [2017年二月20日 02:53 UTC](https://meta.discourse.org/t/latest-on-forum-home-displays-last-column-sort/57520/4 "2017-02-20T02:53:03Z")

</div>

@eviltrout when you get back can you add this to your list

---

<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: [2017年二月27日 20:50 UTC](https://meta.discourse.org/t/latest-on-forum-home-displays-last-column-sort/57520/5 "2017-02-27T20:50:17Z")

</div>

This is a bit of a hack, but it works. I think the root cause might be an ember bug, or a subtle difference in Ember’s internal APIs that we override:

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

---

<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: [2017年二月27日 20:50 UTC](https://meta.discourse.org/t/latest-on-forum-home-displays-last-column-sort/57520/6 "2017-02-27T20:50:22Z")

</div>


