DHTMLX Docs & Samples Explorer

Index
dhtmlxconnector

## Sort Interface Object

### clear

clears all defined settings

      $coll->clear();

### index

check if options for named field exist in collection and return related hash. Returns false if named field not found in collection.

      $index = $coll->index("some_field");

### add

adds new sorting rule to collection

      $coll->add("some_field","ASC");

### rules

array of all already defined sorting rules. Each element has two properties

- name - name of related field
- direction - direction of sorting

      $name = $coll->rules[0]["name"]
      $coll->rules[0]["direction"]="DESC";