Fix test failures associated with related_list

The related_list dictization changes returned them as returned by
the database. This change gives it a default order if they're not
previously sorted.