def METHOD_NAME():
    options = QObject().sender().sortOption
    files = status['selectedfiles']
    model = status['table'].model()
    if files and len(files) > 1:
        model.sortByFields(options,
                           status['selectedfiles'], status['selectedrows'])
    else:
        model.sortByFields(options)