src/Filterizr.js
/**
   * Sorts the FilterItems in the grid
   * @param {String} sortAttr the attribute by which to perform the sort
   * @param {String} sortOrder ascending or descending
   */
Sorts the FilterItems in the grid
@param {String} sortAttr the attribute by which to perform the sort
@param {String} sortOrder ascending or descending
Sorts the FilterItems in the grid @param { String } sortAttr the attribute by which to perform the sort @param { String } sortOrder ascending or descending
sort(sortAttr = 'index', sortOrder = 'asc') {
    const {
      FilterContainer,
      FilterItems,
    } = this.props;
    FilterContainer.trigger('sortingStart');
    this.props.filterizrState = FILTERIZR_STATE.SORTING;
    this.props.FilterItems = this.sortFilterItems(FilterItems, sortAttr, sortOrder);
    const FilteredItems = this.filterFilterItems(this.props.FilterItems, this.options.filter);
    this.props.FilteredItems = FilteredItems;
    this.render(FilteredItems);
  }
sort ( sortAttr = 'index' , sortOrder = 'asc' ) { const { FilterContainer , FilterItems , } = this . props ; FilterContainer . trigger ( 'sortingStart' ) ; this . props . filterizrState = FILTERIZR_STATE . SORTING ; this . props . FilterItems = this . sortFilterItems ( FilterItems , sortAttr , sortOrder ) ; const FilteredItems = this . filterFilterItems ( this . props . FilterItems , this . options . filter ) ; this . props . FilteredItems = FilteredItems ; this . render ( FilteredItems ) ; }
Sorts the FilterItems in the grid
 @param {String} sortAttr the attribute by which to perform the sort
 @param {String} sortOrder ascending or descending
Sorts the FilterItems in the grid @param { String } sortAttr the attribute by which to perform the sort @param { String } sortOrder ascending or descending
// Trigger filteringStart event // Set animation state to trigger callbacks // Sort main array // Apply filters // Update and render the sorted items