Garry's Mod Wiki

Revision Difference

DGrid:SortByMember#518118

<function name="SortByMember" parent="DGrid" type="panelfunc"> <ispanel>yes</ispanel> <description>Sorts the items in the grid. Does not visually update the grid, use <page>Panel:InvalidateLayout</page> for that.</description> <realm>Client</realm> <args> <arg name="key" type="string">A key in the panel from &lt;page&gt;DGrid:GetItems&lt;/page&gt;. The key&#x27;s value must be numeric.</arg> <arg name="key" type="string">A key in the panel from <page>DGrid:GetItems</page>. The key's value must be numeric.</arg> <arg name="desc" type="boolean" default="true">True for descending order, false for ascending.</arg> </args> </function>