The question is how to sort an Array of Arrays with the following structure:
status =
[["Wartend", :pending],
["Schufa Check", :schufa_check],
["Schufa Key existiert", :schufa_person_key_exists],
["LottoIdent", :lotto_ident],
["IBAN existiert", :iban_exists],
["E-Mail Bestätigung", :email_validation],
["SMS Bestätigung", :mobile_validation],
["Aktiv", :active],
["gesperrt", :locked],
["ausgeschlossen", :locked_out],
["werden gelöscht", :marked_for_deletion]]
The result should be this:
[["Aktiv", :active],
["ausgeschlossen", :locked_out],
["E-Mail Bestätigung", :email_validation],
["gesperrt", :locked],
["IBAN existiert", :iban_exists],
["LottoIdent", :lotto_ident],
["Schufa Check", :schufa_check],
["Schufa Key existiert", :schufa_person_key_exists],
["SMS Bestätigung", :mobile_validation],
["Wartend", :pending],
["werden gelöscht", :marked_for_deletion]]