def getOrderedLinks(self, session):
        """
        Retrieve the links in the order of the link number.

        Args:
            session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session object bound to PostGIS enabled database.

        Returns:
            list: A list of :class:`.StreamLink` objects.
        """
        streamLinks = session.query(StreamLink).\
                            filter(StreamLink.channelInputFile == self).\
                            order_by(StreamLink.linkNumber).\
                            all()

        return streamLinks
Retrieve the links in the order of the link number.

        Args:
            session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session object bound to PostGIS enabled database.

        Returns:
            list: A list of :class:`.StreamLink` objects.