adding category sorting 3