Sortable Item / Attribute Groups #110

Closed
opened 2026-06-18 05:13:21 +00:00 by Oliver · 2 comments
Owner

Currently the order that the attribute/item groups shows up on the sheet is in a seemingly random order (because it's based on insertion order of the items), this would be nice to be able to have them consistent across all of the sheets regardless of insertion order.

The most primitive version of this is an alphabetical sort on the group names, though a manual sort could be useful to include the issue is figuring out how to store the sort order of the groups, since what groups exist are defined by the items on the actor. This could potentially use an ArrayField(StringField) on the PlayerData class to store the names of each group in the desired order, and then new groups could be inserted at the end/start

Currently the order that the attribute/item groups shows up on the sheet is in a seemingly random order (because it's based on insertion order of the items), this would be nice to be able to have them consistent across all of the sheets regardless of insertion order. The most primitive version of this is an alphabetical sort on the group names, though a manual sort could be useful to include the issue is figuring out how to store the sort order of the groups, since what groups exist are defined by the items on the actor. This could potentially use an `ArrayField(StringField)` on the PlayerData class to store the names of each group in the desired order, and then new groups could be inserted at the end/start
Oliver added this to the v3.2.0 milestone 2026-06-18 05:13:21 +00:00
Author
Owner

I think I'm going to do this as a world setting, where the stored data is an Array of Strings (group names) which determines the order of the groups, and any group names that are not included in the array are appended to the bottom of the group in alphabetical order.

This would benefit from a new app to be able to add/remove groups, as well as choosing the order of them. Or this could just be a comma-separated list in a single textbox (ideally not the single textbox solution though)

I think I'm going to do this as a world setting, where the stored data is an Array of Strings (group names) which determines the order of the groups, and any group names that are not included in the array are appended to the bottom of the group in alphabetical order. This would benefit from a new app to be able to add/remove groups, as well as choosing the order of them. Or this could just be a comma-separated list in a single textbox (ideally not the single textbox solution though)
Author
Owner

Gonna move the UI part of this to a new issue because I don't like any of the ideas I've had for the UI implementation yet

Gonna move the UI part of this to a new issue because I don't like any of the ideas I've had for the UI implementation yet
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Foundry/taf#110
No description provided.