1.
order, sequence, circumstances
The order of events or how things came about.
2.
depending on
Used as a suffix meaning 'depending on' or 'up to'.
次第 has multiple uses as both a noun and suffix.
AS A NOUN:
AS A SUFFIX (〜次第):
WITH VERB STEM:
REGISTER: Somewhat formal, common in business and written Japanese.