updated to filter ordering for only proper columns