﻿acs_sort = {
    scope = character

    saved_scopes = {
        ctrl_value  
    }
    effect = {
        if = {
            limit = { global_var:acs_sort_by = scope:ctrl_value }
            acs_change_sort_order = yes
        }
        else = {
            set_global_variable = {  name = acs_sort_by value = scope:ctrl_value }
            remove_global_variable = acs_sort_by_ascending
        }
        acs_se_auto_apply_sorting_and_filters = yes
    }
}


acs_change_sort_order = {
    scope = character
 
    effect = {
        acs_change_sort_order = yes
        acs_se_auto_apply_sorting_and_filters = yes
    }
}