Garry's Mod Wiki

Revision Difference

DComboBox:SetSortItems#513392

<function name="SetSortItems" parent="DComboBox" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>⤶ Sets whether or not the items should be sorted alphabetically in the dropdown menu of the <page>DComboBox</page>. If set to false, items will appear in the order they were added by <page>DComboBox:AddChoice</page> calls.⤶ ⤶ This is enabled by default.⤶ </description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="sort" type="boolean">true to enable, false to disable</arg>⤶ </args>⤶ </function>⤶ ⤶