Garry's Mod Wiki

DComboBox:SetSortItems

  DComboBox:SetSortItems( boolean sort )

Description

Sets whether or not the items should be sorted alphabetically in the dropdown menu of the DComboBox. If set to false, items will appear in the order they were added by DComboBox:AddChoice calls.

This is enabled by default.

Arguments

1 boolean sort
true to enable, false to disable