CMS Development Wordpress

WP_query sort by custom meta_key “price”

I’ve created a custom post field for use on my site that is the price of a real estate item for sale (that is the subject of the post). It should sort posts archives by price but I cannot get it to sort high to low; it still sorts as follows: $2,900,000 $24,450,000 $1,900,000 $13,000,000 […]