Another way if you only care about the name and not the numeration part
public class SortOrder
{
public const string Newest = "newest";
public const string Rating = "rating";
public const string Relevance = "relevance";
}
SortOrder.Newest -> newest
nameof(SortOrder.Newest) -> Newest