Device table not sortable by status
### NetBox version

v3.0.9

### Python version

3.8

### Steps to Reproduce

1. Click on sidebar `Devices` -> `Device Bays`
2. On the displayed table's header click on `Status`

### Expected Behavior

Table is displayed reordered, by status

### Observed Behavior

Server Error
diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py
index 675f7d777..c8559458c 100644
--- a/netbox/dcim/tables/devices.py
+++ b/netbox/dcim/tables/devices.py
@@ -653,7 +653,8 @@ class DeviceBayTable(DeviceComponentTable):
         }
     )
     status = tables.TemplateColumn(
-        template_code=DEVICEBAY_STATUS
+        template_code=DEVICEBAY_STATUS,
+        order_by=Accessor('installed_device__status')
     )
     installed_device = tables.Column(
         linkify=True
['netbox/dcim/tables/devices.py']