To download this library for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://Deadron.List##version=0
Emulator users, in the BYOND pager go to File | Open Location and enter this URL:
byond://Deadron.List##version=0
9459 downloads
Latest Version
Date added: | Jan 1 2002 |
Last updated: | Jul 29 2009 |
5 fans
|
dd_sortedObjectList(list/incoming)
This returns a new list with the objects and mobs sorted based on the value each returns in its dd_SortValue() function. Simple lesser-than (<) and greater-than (>) arithmetic is used to compare sort values. By default, objects are sorted by their name. Text values are sorted by case.
If you have a special sorting requirement, then override dd_SortValue() for your mobs/objects to return the value you desire. For example, to sort mobs by their weight, you would have the mob.dd_SortValue() function return the mob's weight:
mob/dd_SortValue()
return weight
dd_sortedtextlist(list/incoming, case_sensitive)
This returns a new list with the items sorted in order of their text value.
dd_sortedTextList(list/incoming)
This returns a new list with the items sorted in order of their text value. The sorting is case-sensitive.
|
|
Copyright © 2024 BYOND Software.
All rights reserved.