Docs
API
  • sorter

    Function

    Enable custom column sort.

    Example

    
    }, {
      index: 'age',
      width: 60,
      title: 'Age',
      sorter: function(dir, a, b) {
    	switch (dir) {
    	  case 'asc':
    		if (a === '') {
    		  return -1;
    		}
    		return a - b;
    	  case 'desc':
    		if (b === '') {
    		  return -1;
    		}
    		return b - a;
    	}
    	return;
      },
      type: 'number'
    }, {
    

    Default

    
    undefined