Add "orderdesc" modification to advanced search

AI-generated summary

Users are discussing the addition of an orderdesc modifier to Discourse’s advanced search to allow descending order for any sort field (e.g., orderdesc:views, orderdesc:likes). meglio proposes this as a universal solution for reverse sorting, noting potential use cases like identifying low-engagement content or improving SEO. riking suggests using order:-views or order:-latest syntax instead. sam expresses skepticism about the need for orderdesc:likes or orderdesc:views, but is open to adding order:earliest for rare cases. meglio counters that unexpected use cases may arise, advocating for a consistent operator. chadwhitacre supports the feature for managing forum “inbox” workflows by sorting posts from least to most recent. riking offers the Unanswered filter as an alternative and mentions a PR adding “Oldest Update” sorting, seeking better naming. Canapin shares personal experience searching within topics and notes confusion between “Latest Post” and “Latest Topic” sorting, suggesting clearer chronological options (ascending/descending) would be helpful — even if used mostly for fun. The thread highlights demand for flexible, intuitive sorting controls beyond the current defaults.

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

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?

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)

2 лайка

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.

You never know what one could come up with :slight_smile:

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.

Мне нужна эта функция для реализации сценария «входящие» при обработке трафика форума: у меня есть поиск, который я хочу сортировать по наименее недавним публикациям (чтобы я мог прорабатывать очередь постов, ожидающих ответа), но я могу получить только наиболее недавние (насколько мне известно).

Возможно, стоит использовать фильтр «Без ответов»: /latest?max_posts=1.

Однако я также создал PR для добавления этой опции сортировки:

Принимаю предложения по названию в выпадающем меню — мне не очень нравится вариант «Самое старое обновление».

2 лайка

Я искал способ сортировать результаты по старым сообщениям (по возрастанию хронологического порядка, добавляя эти термины для будущего поиска по мета-данным…), когда ищу внутри темы.

Я не мог найти «Сортировать по старому сообщению» (есть только новое сообщение), но я попробовал «Сортировать по новой теме», и это сработало.

Я думаю, что понимаю логику, но в данном конкретном случае слова немного контринтуитивны.

Возможность выбора хронологического порядка по возрастанию/убыванию была бы для меня приятным дополнением. Иногда я пытаюсь это сделать и делал это на других форумах, где такая функция была разрешена. Чаще всего это делается ради развлечения, а не для поиска конкретной и интересной информации.

Также мне интересно, как часто люди сортируют по «новому» по сравнению с настройкой по умолчанию «Релевантность». Я часто использую «по новому» на многих форумах.