OrderByField issue

I want to change the field dynamically. This field should be coming from the dropdown. But If I pass CREATED_AT as a string, it won’t work. How can pass the CREATED_AT as a variable?

Please help, Thanks in advance