Phenogrid Sort Cleaning.  Merged filter and processSelected functions