This is helpful
"Works can be considered in three ways: either with reference to justification or sanctification or glorification.
They are related to justification
not antecedently, efficiently and meritoriously, but consequently and declaratively.
They are related to sanctification
constitutively because they constitute and promote it.
They are related to glorification
antecedently and ordinatively because they are related to it as the means to the end."
(See Turretin, 17.3.14)