Small zero-dependency npm package I just published. Takes a list of filenames and a list of rules, gives back named buckets - first match wins, natural sort within each bucket, optional explain map for debugging. Wrote it because I couldn t find one on npm.Feedbacks welcome.