Add sorting filter to filter and count array for display
 *Added sorting functions for both filter and count arrays in separateFilterData
 *Change separateFilterData to splitSortFilterData