[PR #248] [MERGED] possible fix for #243 generic sorting for device bays #12018

Closed
opened 2025-12-29 22:19:10 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/248
Author: @Zanthras
Created: 7/9/2016
Status: Merged
Merged: 7/12/2016
Merged by: @jeremystretch

Base: developHead: develop


📝 Commits (2)

  • d986742 Use the natsort library to provide a generic sorting option for better sorting of generic names for device bays.
  • 173a4cd Update the requirements file to include the natsort library requirement.

📊 Changes

2 files changed (+8 additions, -1 deletions)

View changed files

📝 netbox/dcim/views.py (+7 -1)
📝 requirements.txt (+1 -0)

📄 Description

As mentioned in issue #9 the natsort library handles this kind of thing easily on its own. If the additional library requirement is not desired then this obviously isnt the way to go.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/248 **Author:** [@Zanthras](https://github.com/Zanthras) **Created:** 7/9/2016 **Status:** ✅ Merged **Merged:** 7/12/2016 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (2) - [`d986742`](https://github.com/netbox-community/netbox/commit/d9867423de9848a8548eeff7105c38ae33eeab1e) Use the natsort library to provide a generic sorting option for better sorting of generic names for device bays. - [`173a4cd`](https://github.com/netbox-community/netbox/commit/173a4cde8b51a379d157800bcf24ab73b5a56374) Update the requirements file to include the natsort library requirement. ### 📊 Changes **2 files changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/views.py` (+7 -1) 📝 `requirements.txt` (+1 -0) </details> ### 📄 Description As mentioned in issue #9 the natsort library handles this kind of thing easily on its own. If the additional library requirement is not desired then this obviously isnt the way to go. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:19:10 +01:00
adam closed this issue 2025-12-29 22:19:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12018