code: def create_proxy_model(self, model):
          
          proxy = ReftrackSortFilterModel(self)
          proxy.setSourceModel(model)
          model.rowsInserted.connect(self.sort_model)
          return proxy
docs: Create a sort filter proxy model for the given model
  
          :param model: the model to wrap in a proxy
          :type model: :class:`QtGui.QAbstractItemModel`
          :returns: a new proxy model that can be used for sorting and filtering
          :rtype: :class:`QtGui.QAbstractItemModel`
          :raises: None