def sort_languages(self, order=Qt.AscendingOrder):
        """
        Sorts the Model languages.

        :param order: Order. ( Qt.SortOrder )
        """

        self.beginResetModel()
        self.__languages = sorted(self.__languages, key=lambda x: (x.name), reverse=order)
        self.endResetModel()