To download this library for your Linux/Mac installation, enter this on your command line:
Emulator users, in the BYOND pager go to File | Open Location
and enter this URL:
|Date added: ||Jan 1 2002|
|Last updated: ||Jul 29 2009|
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:
This returns a new list with the items sorted in order of their text value.
This returns a new list with the items sorted in order of their text value. The sorting is case-sensitive.
Copyright © 2021 BYOND Software.
All rights reserved.