sorted values and labels