chore(refactor): Refactored vendor sorting to DRY

The vendor sorting stream modifier is also exported now so other spells can make use of it to ensure
they too correctly order build files.