rewrite reorder-columns more idiomatic way, using the sel