fix and simplify selection and ordering in plot_params()