F: reorder layers