Fixing term_id to be term_taxonomy_id

Hopefully this will resolve the various sorting issues...