Return the first column as sort key unless the table looks like a standard has_and_belongs_to_many join table, in which case add the second "ID column"
[Validate]