# Add "orderdesc" modification to advanced search

**URL:** https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545
**Category:** Feature
**Created:** [Janeiro 27, 2016, 1:35am UTC](https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545 "2016-01-27T01:35:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [Janeiro 27, 2016, 1:35am UTC](https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545/1 "2016-01-27T01:35:24Z")

</div>

While we can choose which field to order by when searching in advanced mode:

- order:views
- order:latest
- order:likes

… we cannot choose whether we want to order ascending or descending.

Adding **`orderdesc`** modifier would easily make it possible:

- orderdesc:views
- orderdesc:latest
- orderdesc:likes

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [Janeiro 27, 2016, 2:05am UTC](https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545/2 "2016-01-27T02:05:16Z")

</div>

order:likes is already descending, right?

So what you want is “the opposite of the normal order that this term means”.

Not sure about this, but… How about `order:-views` to start at 0 and go up, while `order:-latest` starts at the oldest?

---

<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: [Janeiro 27, 2016, 2:15am UTC](https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545/3 "2016-01-27T02:15:56Z")

</div>

struggling to think of use cases for orderdesc:likes or orderdesc:views, though I am open to possibly adding order:earliest (its quite rare to need though)

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [Janeiro 27, 2016, 2:21am UTC](https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545/4 "2016-01-27T02:21:19Z")

</div>

We should find a way to allow for opposite ordering for any ordering type (kind of a universal way of doing it), then easier to remember and use.

> [@sam](#):
>
> struggling to think of use cases for orderdesc:likes or orderdesc:views

You never know what one could come up with 🙂

I’d use `orderdesk:likes` to identify which type of material is the worst in terms of people likes and not create similar topics, or not include them in the lists.

`orderdesc:views` might possibly indicate topics that need some more useful information to get more attractions from organic search.

I think there might be more use-cases I can’t think of, why not just make it possible with a single operator.

---

<div class="post-metadata">

### Author: ![chadwhitacre](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chadwhitacre/32/202493_2.png) [@chadwhitacre](https://meta.discourse.org/u/chadwhitacre)
#### Post date: [Dezembro 7, 2020, 5:25pm UTC](https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545/5 "2020-12-07T17:25:08Z")

</div>

Quero essa funcionalidade para dar suporte a um caso de uso de ‘caixa de entrada’ para processar o tráfego do fórum: tenho uma pesquisa que quero ordenar por _menos_ recente (para que eu possa trabalhar descendo na fila de posts aguardando resposta), e só consigo obter o _mais_ recente (pelo que vi).

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [Dezembro 19, 2020, 12:39am UTC](https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545/6 "2020-12-19T00:39:26Z")

</div>

Talvez você queira considerar usar o filtro Não Respondido: `/latest?max_posts=1`.

> [@Unanswered Filter](https://meta.discourse.org/t/unanswered-filter/126257/):
>
> discourse2Summary Unanswered Filter adds a breadcrumb dropdown that filters a topic list by unanswered and answered topics.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/unanswered-filter)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-unanswered-filter](https://github.com/discourse/discourse-unanswered-filter)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 Unanswered Filter adds a new breadcrumb dropdown that allows users to filter a t…

No entanto, também escrevi um PR para adicionar essa opção de classificação:

> <https://github.com/discourse/discourse/pull/11534>
>
> The new 'order:oldest' qualifier will return posts in topics that have gone the …longest without any new posts, using the bumped\_at field.
> This can be used in conjunction with other search terms and operators (e.g. status:open) to create a cycling work queue.
> 
> Requested on Meta: https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545/5?u=riking

Estou aberto a sugestões sobre qual deve ser o nome no menu suspenso; não gosto muito de “Atualização Mais Antiga”.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [Novembro 4, 2022, 10:08am UTC](https://meta.discourse.org/t/add-orderdesc-modification-to-advanced-search/38545/7 "2022-11-04T10:08:42Z")

</div>

Eu estava procurando uma maneira de classificar os resultados por mais antigos (ordem cronológica ascendente, adicionando estes termos para futuras pesquisas nos metadados…) ao pesquisar dentro de um tópico.

Não consegui encontrar “Classificar por **Postagem Mais Antiga** ” (só existe **[Postagem Mais Recente](https://unicyclist.com/search?q=%40Canapin%20topic%3A69519%20order%3Alatest)**), mas tentei “Classificar por **Tópico Mais Recente** ” e [funcionou](https://unicyclist.com/search?q=%40Canapin%20topic%3A69519%20order%3Alatest_topic).

Acho que entendo a lógica, mas as palavras são um pouco contraintuitivas neste caso específico.

Uma opção de ordem cronológica ascendente/descendente seria, para mim, uma boa adição, às vezes tento fazer isso, e fiz em outros fóruns que permitiam. Frequentemente mais por diversão do que procurando informações específicas e interessantes.

Além disso, pergunto-me com que frequência as pessoas classificam por Mais Recente, em comparação com o padrão “Relevância”. Frequentemente uso “por Mais Recente” em muitos fóruns.
