sorting on plans pg