Sort relationships-by-endpoint-type table properly.