Sort packages before returning
Merge pull request #3786 from UtahDave/win_pkg_fixes

Sort packages before returning