add sorting of categories