/tg/ Station 13 - Modules - Types

code/__HELPERS/cmp.dm

/proc/cmp_bodypart_by_body_part_ascOrders bodyparts by their body_part value, ascending.
/proc/cmp_port_order_ascOrders by integrated circuit weight
/proc/cmp_uplink_category_descOrders by uplink category weight
/proc/cmp_crafting_req_prioritySorts crafting recipe requirements before the crafting recipe is inserted into GLOB.crafting_recipes
/proc/cmp_heretic_knowledgeOrders heretic knowledge by priority
/proc/cmp_assoc_list_namePassed a list of assoc lists, sorts them by the list's "name" keys.
/proc/cmp_mob_healthOrders mobs by health
/proc/cmp_fish_fluidOrders fish types following this order (freshwater -> saltwater -> anadromous -> sulphuric water -> any water -> air) If both share the same required fluid type, they'll be ordered by name instead.
/proc/cmp_rped_sortSorts stock parts based on tier