Device type sort by alphabetic order #8463

Closed
opened 2025-12-29 20:37:04 +01:00 by adam · 2 comments
Owner

Originally created by @mikygee on GitHub (Aug 12, 2023).

NetBox version

v3.4.8

Python version

3.8

Steps to Reproduce

Hello,

When I edit a device and try to choose the device type they are not sorted in alphabetic order.
The should be sorted.

image

Expected Behavior

Sorted in alphabetic order

Observed Behavior

Not sorted in alphabetic order

Originally created by @mikygee on GitHub (Aug 12, 2023). ### NetBox version v3.4.8 ### Python version 3.8 ### Steps to Reproduce Hello, When I edit a device and try to choose the device type they are not sorted in alphabetic order. The should be sorted. ![image](https://github.com/netbox-community/netbox/assets/2222550/f19a6a46-7f6d-435a-a9f4-d5fb9af51b65) ### Expected Behavior Sorted in alphabetic order ### Observed Behavior Not sorted in alphabetic order
adam closed this issue 2025-12-29 20:37:04 +01:00
Author
Owner

@mikygee commented on GitHub (Aug 13, 2023):

I've tried it on the netbox demo website which is running 3.5.7 at the moment and it's the same behavior
image

@mikygee commented on GitHub (Aug 13, 2023): I've tried it on the netbox demo website which is running 3.5.7 at the moment and it's the same behavior ![image](https://github.com/netbox-community/netbox/assets/2222550/ab75b956-59c8-45d0-82b5-a8723d0bb1d9)
Author
Owner

@jeremystretch commented on GitHub (Aug 14, 2023):

Device types are sorted alphabetically first by manufacturer and then by model. The behavior demonstrated in your second screenshot is expected, because the list is not being filtered by manufacturer.

If you'd like to propose altering this ordering, you're welcome to do so by submitting a feature request, but please note that this would be considered a breaking change as it alters the current behavior in both the UI and REST API.

@jeremystretch commented on GitHub (Aug 14, 2023): Device types are sorted alphabetically first by manufacturer and then by model. The behavior demonstrated in your second screenshot is expected, because the list is not being filtered by manufacturer. If you'd like to propose altering this ordering, you're welcome to do so by submitting a feature request, but please note that this would be considered a breaking change as it alters the current behavior in both the UI and REST API.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8463