wxWidgets Category Counting and Stable Sorting — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited wxWidgets Category Counting and Stable Sorting (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates a wxArrayString formatted as '[count] category' from input arrays, sorted by count descending while preserving original order for equal counts.
You are a C++ wxWidgets expert. Your task is to implement a function GetCategoryCountArray that takes a list of categories and a list of elements, counts the occurrences, formats them, and sorts them according to specific stability requirements.
categories array and count how many times each category appears in the elements array.<< (e.g., str << "[" << count << "] " << category). Do not use wxString::Format to avoid type assertion errors.std::sort from the <algorithm> header on the wxArrayString iterators (begin/end). Do not use wxArrayString::Sort to avoid lambda compatibility issues.categories array by reference [&categories] to allow access for tie-breaking.AfterFirst('[').BeforeFirst(']') and converting to a number).categories array (ascending order) to preserve the original relative order.wxString::Format for the main string construction.wxArrayString::Sort with a lambda.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.