11383 fix search order (#12251)

* Fixes #11383: Sorting search by type doesn't work

* Fixes #11383: Sorting search by type doesn't work; more reliable approach
This commit is contained in:
Austin de Coup-Crank 2023-04-20 16:04:47 -05:00 committed by GitHub
parent 2920d863d5
commit ca22776a3f

View File

@ -200,7 +200,8 @@ class NetBoxTable(BaseTable):
class SearchTable(tables.Table):
object_type = columns.ContentTypeColumn(
verbose_name=_('Type')
verbose_name=_('Type'),
order_by="object___meta__verbose_name",
)
object = tables.Column(
linkify=True