Change default sorting of user/org search to alphabetical #1121

Closed
opened 2025-11-02 03:49:17 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @daviian on GitHub (Oct 4, 2017).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL) search on explore page for user/org
    • No
    • Not relevant
  • Log gist:

Description

At the moment every page including a searchbox use the same searchbox template, thus every search uses the same default ordering.
IMO sorting users and organizations by newest doesn't make much sense.
It would be more natural to have it sorted alphabetically by default.

I think in order to achieve that, we have to change the searchbox template to allow a dynamic assignment of default ordering per page.

Originally created by @daviian on GitHub (Oct 4, 2017). - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) search on explore page for user/org - [ ] No - [ ] Not relevant - Log gist: ## Description At the moment every page including a searchbox use the same searchbox template, thus every search uses the same default ordering. IMO sorting users and organizations by `newest` doesn't make much sense. It would be more natural to have it sorted alphabetically by default. I think in order to achieve that, we have to change the searchbox template to allow a dynamic assignment of default ordering per page.
GiteaMirror added the type/proposal label 2025-11-02 03:49:17 -06:00
Author
Owner

@sapk commented on GitHub (Oct 5, 2017):

Order by last activity could be best.

@sapk commented on GitHub (Oct 5, 2017): Order by last activity could be best.
Author
Owner

@daviian commented on GitHub (Oct 5, 2017):

@sapk Since #2647 has already been merged ticket should be closed by now. ;-)

@daviian commented on GitHub (Oct 5, 2017): @sapk Since #2647 has already been merged ticket should be closed by now. ;-)
Author
Owner

@lafriks commented on GitHub (Oct 5, 2017):

@sapk it is very hard to orientate in searchbox if users are not alphabetically

@lafriks commented on GitHub (Oct 5, 2017): @sapk it is very hard to orientate in searchbox if users are not alphabetically
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1121