Fix extension registry categorization
Created by: tjkandala
Fix #14866 (closed).
I used an existing helper function validCategories
to remove invalid or deprecated categories, but I didn't notice that it sorted the filtered array. I removed the sort and added a test to prevent regressions