requirement sort in one way