Order the query result on the relations' indexes.

def ordered(self, ord='desc'):
        """Order the query result on the relations' indexes."""
        if ord not in ('asc', 'desc', ):
            raise
        ord_f = getattr(PIDRelation.index, ord)()
        return self.order_by(ord_f)