# 생성일 기준으로 최신 목록 보기

**URL:** https://meta.discourse.org/t/show-latest-list-sorted-by-creation-date/140832
**Category:** Feature
**Created:** [2월 6, 2020, 9:07오전 UTC](https://meta.discourse.org/t/show-latest-list-sorted-by-creation-date/140832 "2020-02-06T09:07:45Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![HeyRR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heyrr/32/192157_2.png) [@HeyRR](https://meta.discourse.org/u/HeyRR)
#### Post date: [8월 30, 2020, 7:35오후 UTC](https://meta.discourse.org/t/show-latest-list-sorted-by-creation-date/140832/5 "2020-08-30T19:35:17Z")

</div>

이 컴포넌트를 약간 수정하여 작동하게 만들었습니다. 즉, ‘날짜순 정렬’ 버튼을 추가한 것입니다.

> [@Custom Top Navigation Links](https://meta.discourse.org/t/custom-top-navigation-links/87225):
>
> discourse2Summary Custom Top Navigation Links allows you to add links to Discourse top navigation.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/custom-top-navigation-links)hammer_and_wrenchRepository Link [https://github.com/discourse/Discourse-nav-links-component](https://github.com/discourse/Discourse-nav-links-component)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features Desktop Mobile Settings: …

여기서 설정으로 URL 쿼리를 전달했습니다:

`unfinished; unfinished; ?tags=unfinished`  
`created-time; created-time; ?order=created`

그리고 스크립트에서 `search` 파라미터를 확인합니다:

```javascript

  api.modifyClass("component:navigation-item", {
    active: Ember.computed("contentFilterMode", "filterMode", function() {
      let contentFilterMode = this.get("content").get("filterMode");

      if (decodeURIComponent(window.location.search) === location) { // search 파라미터 확인
        return contentFilterMode.includes(filter); // 이 파라미터를 포함하면 active = true;
      } else {
        return this._super(contentFilterMode, this.get("filterMode"));
      }
    })
  });

```

제 환경에서는 잘 작동하지만, 이 스크립트는 내부 부분만 새로고침하는 것이 아니라 페이지 전체를 새로고침합니다. 내부 토픽 컴포넌트만 새로고침할 수 있는 방법이 있을까요?

---

_[View the full topic](https://meta.discourse.org/t/show-latest-list-sorted-by-creation-date/140832)._
