Filtering a parameter

This code is perfect for filtering. Do you know of a way to reorder the filters? I’m sorry if I’m asking too much. Coding isn’t my strong point.