Using dpkg to install a dir full of *.deb file…

Hey guys. I’m curious if it’s possible to use dpkg – i to install a directory full of *.deb files and to have it sort out which ones are dependent on one another and install in the proper order? I’m trying to run a machine that’s air gapped to force myself to come into contact with issues that I wouldn’t run into otherwise. I’d like to little more in depth about what a lot of these automated apt functions are doing. Thanks for the help, I really appreciate it.