How to sort WordPress posts by a custom field only in one specific category

How do you sort WordPress posts by a custom field only in one specific category? I need to sort posts in reverse chronological order by the custom field "Hidden Thought" in the category "2019". Please let me know what file I need to update.

I've tried plugins, but none of them have worked.