adding category sorting 2