Reimplement category reordering