Obviously, the enumeration variable is easier to understand in the case of last and first, and no additional analysis is required. I can hardly think of any reason to use const char, so I think it is a good practice to replace const char with enum.
I don't know if my idea is correct,so everyone is welcome to discuss this issue.