src/lsi/utils/hosts.py
def sort_by(cls, entries, attribute):
        """
        Sorts a list of entries by the given attribute.
        """
        def key(entry):
            return entry._get_attrib(attribute, convert_to_str=True)
        return sorted(entries, key=key)
def sort_by(cls, entries, attribute):
        def key(entry):
            return entry._get_attrib(attribute, convert_to_str=True)
        return sorted(entries, key=key)
def sort_by ( cls , entries , attribute ) : def key ( entry ) : return entry . _get_attrib ( attribute , convert_to_str = True ) return sorted ( entries , key = key )
Sorts a list of entries by the given attribute.
Sorts a list of entries by the given attribute .