sort props and env