Sort requirements, fix #1031.
Merge pull request #1056 from normanjaeckel/SortRequirements

Sort requirements, fix #1031.