I have code for custom post type, for custom taxonomy for displaying category posts.
What I want is to order posts by custom field value, and I was wondering how I can do it?
For example if posts have custom field called “rating” how can I order posts from lowest value to highest?