I have the following code:
$my_result = db_query("SELECT nid FROM content_field_taxo_listing WHERE field_taxo_listing_value = '%s'", $tid);
while ($my_row = db_fetch_array($my_result)) {
$nodeids[] = $my_row['nid'];
}
What I want to do is to join (it might be a union, but I am not sure) the "content_field_taxo_listing" table with the "node" table, and order the "nids" field by title in the "node" table.
What is the Drupal way for doing this?