Documentation

sort

sets sorting rule(s) according which items will be sorted within units

function sort;

Example

webix.ui({
      view:"unitlist", 
      ...
      sort:{
          by:"#name#"
      }
})

Details

The parameter is an object that can contain the following attributes:

  • by - (template, function, hash of parameters) the template for sorted value
  • dir - (asc or des) the sorting direction (optional)
  • as - (function or one of the next values:'string', 'string_strict', 'integer') the type of data sorting (optional)
Back to top