Avoid jumping margins when sorting.