categorizesort
Categorizesort is a sorting technique that partitions a collection of items into categories using a user-supplied categorization function, sorts the items within each category, and then concatenates the results in category order. Its design blends ideas from bucket sort and conventional comparison sorts, aiming to exploit strong separation of keys or attributes before performing finer ordering.
Algorithm: For each element, determine its category by a function f(element) that yields an ordered category
Performance and properties: Performance depends on the distribution of elements across categories and the cost of
Variants and notes: Variants include dynamic or adaptive categorization, multi-pass categorization to refine ordering across categories,
See also: bucket sort, radix sort, counting sort, distribution sort.