Default to sort by id and the first column in the related tables grid.

Closes #216