solved problem in sort-components