Language: PHP
Label: vulnerable
CWE: NVD-CWE-Other \u2014 Other
NVD is only using a subset of CWE for mapping instead of the entire CWE, and the weakness type is not covered by that subset.

Code:
        foreach ($segmentCollection as $group => $groupCollection) {
            if (!empty($groupCollection)) {
                usort($groupCollection, function ($left, $right) {
                    if ($left['count'] === $right['count']) {
                        return 0;
                    }

                    return ($left['count'] < $right['count']) ? 1 : -1;
                });

                $segmentCollection[$group] = array_slice($groupCollection, 0, $limitSegmentCountPerGroup);
            }
        }