Sort Post Array

Sometimes I need to combine multiple arrays of posts that are pulled in from various locations. Then I need to make sure those posts are all sorted in the correct order. I found a great function to do that on Brady Vercher’s Github. I made a few minor changes to it.

Good luck!