Fixed sorting by priority -> meta_value_num