Flattened list is sorted by category name
Tests are updated
Removed redundant AppendChild