I am trying to order a list by a specific variable called 'wpcf-range' which is numeric and it needs to list ASC. This is for a WordPress website, but the previous developer has used a MySQL statement rather than do it the WordPress way thus confusing my beginner brain. See code below, any help would be most appreciated...

```
$listing = $wpdb->get_results("SELECT SQL_CALC_FOUND_ROWS * FROM wp_posts INNER JOIN wp_term_relationships ON wp_term_relationships.object_id = wp_posts.ID WHERE wp_term_relationships.term_taxonomy_id = '" . $term->term_taxonomy_id . "' LIMIT " . $start . ", " . $limit);

```