#(daxz_) sort alphabetically by display name

1 messages · Page 1 of 1 (latest)

gilded gale
#

basically i have a list of items, i want to sort it alphabetically by display name. i tried to parse it with .display but it only gave me the name and no itemtag.

last hillBOT
#

(daxz_) sort alphabetically by display name

last hillBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

west prairie
#

!t sort_by_value

civic breachBOT
west prairie
#

!t listtag.sort_by_value

civic breachBOT
# west prairie !t listtag.sort_by_value

Returns a copy of the list, sorted alphanumerically.
Rather than sorting based on the item itself, it sorts based on a tag attribute read from within the object being read.
For example, you might sort a list of players based on their names, via .sort_by_value[name] on the list of valid players.

Returns

ListTag

west prairie
#

i think this

final tide
#

this also sounds like a case of

#

!debug

civic breachBOT
# final tide !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!