Ordering the categories as required