Implement Sort in GetTask