Garry's Mod Wiki

DGrid:SortByMember

  DGrid:SortByMember( string key, boolean desc = true )

Description

Sorts the items in the grid. Does not visually update the grid, use Panel:InvalidateLayout for that.

Arguments

1 string key
A key in the panel from DGrid:GetItems. The key's value must be numeric.
2 boolean desc = true
True for descending order, false for ascending.