How do I put cards back in their corresponding subdecks?

For the anking deck, I accidentally moved all my OME cards into the “main” deck and now there are zero cards in all the subdecks. But I rely on doing subdecks after watching videos. How do I fix this?

PS. What I am trying to say is there a way to “autosort” the cards back into their corresponding subdeck or redownload the deck from ankihub while keeping my progression, but having hte cards go back into their subdecks?

Hello,

You could potentially restore from a backup. See how to do so below

Otherwise, you can find each tag and move it separately, but that might take a bit of time