Optimizing

Updated TPASortByRow and TPASortByColumn