Skip to content

Commit

Permalink
Fixes netbox-community#11383: Sorting search by type doesn't work; mo…
Browse files Browse the repository at this point in the history
…re reliable approach
  • Loading branch information
decoupca committed Mar 22, 2023
1 parent 96f43d3 commit 04193b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/netbox/tables/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(self, *args, extra_columns=None, **kwargs):
class SearchTable(tables.Table):
object_type = columns.ContentTypeColumn(
verbose_name=_('Type'),
order_by="object_type_id",
order_by="object___meta__verbose_name",
)
object = tables.Column(
linkify=True
Expand Down

0 comments on commit 04193b1

Please sign in to comment.