I have following problem:
List to be sorted:
[['[check116] Ensure ...', 'azure-ad-role-manager ...'],
['[check28] Ensure ...', 'eu-west-1: Key ...', 'eu-central-1: Key ...'],
['[check41] Ensure ...', 'Found ...']]
Pattern:
["[check28] Ensure ...",
"[check116] Ensure ...",
"[check41] Ensure ..."]
Desired output:
[['[check28] Ensure ...', 'eu-west-1: Key ...', 'eu-central-1: Key ...'],
['[check116] Ensure ...', 'azure-ad-role-manager ...'],
['[check41] Ensure ...', 'Found ...']]
I've tried: Sorting list based on values from another list and few other solutions - but they mainly base on sorting the pattern's int values, and it's not the case in my problem.
Thanks in advance for any hints or solutions.