Exception when adding ?sort=ports to Service and ServiceTemplate list view
### NetBox version

v3.2.4

### Python version

3.8

### Steps to Reproduce

1. Login netbox
2. Select "IPAM"
3. Select "Service Templates" or "Services"
4. Append ?sort=ports to the URL

### Expected Behavior

Show the list of configured templates.

### Observed Behavior

<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword 'port_list' into field. Choices are: created, custom_field_data, description, id, journal_entries, last_updated, name, ports, protocol, tagged_items, tags

Python version: 3.8.10
NetBox version: 3.2.4
diff --git a/netbox/ipam/tables/services.py b/netbox/ipam/tables/services.py
index 8c81a28c2..58d0a9aff 100644
--- a/netbox/ipam/tables/services.py
+++ b/netbox/ipam/tables/services.py
@@ -14,7 +14,8 @@ class ServiceTemplateTable(NetBoxTable):
         linkify=True
     )
     ports = tables.Column(
-        accessor=tables.A('port_list')
+        accessor=tables.A('port_list'),
+        order_by=tables.A('ports'),
     )
     tags = columns.TagColumn(
         url_name='ipam:servicetemplate_list'
@@ -35,7 +36,8 @@ class ServiceTable(NetBoxTable):
         order_by=('device', 'virtual_machine')
     )
     ports = tables.Column(
-        accessor=tables.A('port_list')
+        accessor=tables.A('port_list'),
+        order_by=tables.A('ports'),
     )
     tags = columns.TagColumn(
         url_name='ipam:service_list'
['netbox/ipam/tables/services.py']