reordering functionality for categories;