Reorder works with custom classes