feat(xmlSortingAlgorithm): try different approach with a hash map