Don't sort on an empty table.