# Topic List Sort By Votes in voting plugin

**URL:** https://meta.discourse.org/t/topic-list-sort-by-votes-in-voting-plugin/63281
**Category:** Feature
**Tags:** topic-voting, completed
**Created:** [May 24, 2017, 1:29pm UTC](https://meta.discourse.org/t/topic-list-sort-by-votes-in-voting-plugin/63281 "2017-05-24T13:29:56Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)
#### Post date: [July 28, 2018, 9:17pm UTC](https://meta.discourse.org/t/topic-list-sort-by-votes-in-voting-plugin/63281/10 "2018-07-28T21:17:55Z")

</div>

If you have no problems in getting your hands a little dirty, you can edit `./app/assets/javascripts/discourse/components/edit-category-settings.js.es6` and add “votes” to the array described in function `availableSorts`, like so:

```javascript
  @computed
  availableSorts() {
    return [
      "likes",
      "op_likes",
      "views",
      "posts",
      "activity",
      "posters",
      "category",
      "created",
      "views",
    ]
      .map(s => ({ name: I18n.t("category.sort_options." + s), value: s }))
      .sort((a, b) => {
        return a.name > b.name;
      });
  },

```

Now, you should see `[[category.sort_options.voting]]` in settings.

---

_[View the full topic](https://meta.discourse.org/t/topic-list-sort-by-votes-in-voting-plugin/63281)._
