dataFilter.js
Filter and sort elements using data attributes
Example
dataFilter.init({
filterclass: 'filter',
dataParent: 'dataParent',
sortAttr: 'data-sort'
});
Documentation
dataFilter.init(options)
Options
filterClassthe class used on buttons or links that are used to filter the datadataParentthe ID of the parent element which contains the data to filtersortAttrthe data attribute that is used to sort the items