Docs
API
  • sort(index: String, direction: String)


    Sort grid by data index and direction.
    Possible values of direction: 'ASC'|'DESC'|'DROP'

    Example

    
    grid.sort('age');
    

    Example

    
    grid.sort('age', 'ASC');