speed improvement for data placement in category-creation (based on pre-sorted data)