Your question is not very detailed. It is hard to work out exactly what you are doing but I am assuming that you are trying to sort posts by a custom meta meta_key
/meta_value
. This the formula for that (annotated but basically lifted from the Codex):
$args = array(
'post_type' => 'your_post_type', // I don't know what this is
'meta_key' => 'your_key', // I don't know what this is
'orderby' => 'meta_value_num', // only for numbers; use "meta_value" for alphanumerical keys
'order' => 'ASC',
'meta_query' => array(
array(
'key' => 'your_key',
'value' => array('your_value'), // can be more than one
'compare' => 'IN', // see the Codex for other values
)
)
);
$query = new WP_Query($args);