Allow alphabetical ordering of bookmarks on dashboard #9725

Closed
opened 2025-12-29 21:21:38 +01:00 by adam · 6 comments
Owner

Originally created by @AliMickey on GitHub (May 23, 2024).

Originally assigned to: @Julio-Oliveira-Encora on GitHub.

NetBox version

v4.0.2

Feature type

Change to existing functionality

Proposed functionality

Add additional order by options for bookmarks on the dashboard.

Use case

Alphabetical ordering is useful, and also matches the default table ordering of other sections.

Database changes

No response

External dependencies

No response

Originally created by @AliMickey on GitHub (May 23, 2024). Originally assigned to: @Julio-Oliveira-Encora on GitHub. ### NetBox version v4.0.2 ### Feature type Change to existing functionality ### Proposed functionality Add additional order by options for bookmarks on the dashboard. ### Use case Alphabetical ordering is useful, and also matches the default table ordering of other sections. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurecomplexity: low labels 2025-12-29 21:21:38 +01:00
adam closed this issue 2025-12-29 21:21:38 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 23, 2024):

Add additional order by options for bookmarks on the dashboard.

Please expand on your proposal. How would bookmark ordering be specified? Are you asking that the widget itself be extended?

@jeremystretch commented on GitHub (May 23, 2024): > Add additional order by options for bookmarks on the dashboard. Please expand on your proposal. How would bookmark ordering be specified? Are you asking that the widget itself be extended?
Author
Owner

@AliMickey commented on GitHub (May 23, 2024):

I didn't think I'd need to expand, sorry if I wasn't clear.

I am referencing the bookmarks widget on the dashboard, within which the configuration for it there is an 'Order by' field, the only two options are newest and oldest. I am suggesting that there be a third option called 'Alphabetical' which does what it means... sorts the bookmarks alphabetically.

image

@AliMickey commented on GitHub (May 23, 2024): I didn't think I'd need to expand, sorry if I wasn't clear. I am referencing the bookmarks widget on the dashboard, within which the configuration for it there is an 'Order by' field, the only two options are newest and oldest. I am suggesting that there be a third option called 'Alphabetical' which does what it means... sorts the bookmarks alphabetically. ![image](https://github.com/netbox-community/netbox/assets/60691199/27bca0f3-b25a-4bef-a26e-d6e6cb08ff4c)
Author
Owner

@jeremystretch commented on GitHub (May 23, 2024):

Unfortunately alphabetical ordering is not feasible as there's no way to reliably and efficiently order by the name of generic related objects. (Not all objects have a name field.)

@jeremystretch commented on GitHub (May 23, 2024): Unfortunately alphabetical ordering is not feasible as there's no way to reliably and efficiently order by the name of generic related objects. (Not all objects have a `name` field.)
Author
Owner

@AliMickey commented on GitHub (May 23, 2024):

Understood.

It wouldn't be clean, but still possible by just checking if each object has a name field, if yes add it to an array and sort alphabetically once loop is finished. Then append the non name objects to the end.

@AliMickey commented on GitHub (May 23, 2024): Understood. It wouldn't be clean, but still possible by just checking if each object has a `name` field, if yes add it to an array and sort alphabetically once loop is finished. Then append the non `name` objects to the end.
Author
Owner

@jeremystretch commented on GitHub (May 28, 2024):

It could probably be done in memory on the string representations of each object, given that the list of bookmarks typically shouldn't be very long. I'll open this for any volunteers.

@jeremystretch commented on GitHub (May 28, 2024): It could _probably_ be done in memory on the string representations of each object, given that the list of bookmarks typically shouldn't be very long. I'll open this for any volunteers.
Author
Owner

@Julio-Oliveira-Encora commented on GitHub (Jun 5, 2024):

Could you please assign it to me?

@Julio-Oliveira-Encora commented on GitHub (Jun 5, 2024): Could you please assign it to me?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9725