Implement Daniel's ordering