
Hiya,
As the title really. I have some shopkeeper characters with a stupid amount of attributes and I need a good way to sort them. I was hoping for something like the Transmogrifier sorter by the Aaron by I haven't seen anything like it.
Hiya,
As the title really. I have some shopkeeper characters with a stupid amount of attributes and I need a good way to sort them. I was hoping for something like the Transmogrifier sorter by the Aaron by I haven't seen anything like it.
This should work:
javascript:$('.attributes div.body.editable.ui-sortable').children().sort( (a,b)=>{ let name1 = $(a).find('.attrname').text().toLowerCase(), name2 = $(b).find('.attrname').text().toLowerCase(); return name1.localeCompare(name2); }).each((i,c)=>$(c).parent().append(c));
That's amazing. And going to save a lot of time for a lot of people I expect.
Any chance we can get a version for abilities as well? The fact that attributes and abilities randomly rearrange themselves at times has been my anathema for months now, so this is really such a huge timesaver.
yup.
javascript: $('.abilities div.body.editable.ui-sortable').children().sort( (a,b)=>{ let name1 = $(a).find('.abilname').text().toLowerCase(), name2 = $(b).find('.abilname').text().toLowerCase(); return name1.localeCompare(name2); }).each((i,c)=>$(c).parent().append(c));
I realised :p
But honestly I'm still hoping that whatever bug causes the Attributes and Abilities to randomly rearrange themselves will get fixed one day, and in the meantime this is still an absolute godsend.
Just a theory, but I think as Attributes are created or updated (even if re-evaluated to the existing value), they go to the bottom of the list.
Yeah, probably something to do with sheetworkers. My guess is that some sheets delete and recreate some attributes instead of updating them.
I'm not sure honestly, since I've found that EVERY TIME my sheets re-order themselves, it's always to the same (incorrect order).
For example, my current characters sheets are meant to have Attributes such as Resolve, HP and TempHP at the top. Every single time roll20 adjusts the order however, seemingly of its own accord, Weapon, Base Damage and STR scaling move to the top of the sheet. Every time without exception.
Frankly it's as though roll20 recognises some default order of its down, that unfortunately does not align with the actual intended default order :p
Additionally the sheets frequently re-order themselves even when they haven't been touched or used. I've at times edited one sheet, gone to edit another sheet, then returned to the first to find its rearranged itself once more before a single change has been made or a single ability/macro rolled.
Ah, It's probably ordered by id, which is based on creation time. That is kind of strange. Are you using a character sheet, or just attributes?