browscap/browscap — pull request #314 by mimmi20 (2014-06-11 20:58:50+00:00)
Title: Reorder Resources

This PR is related to Issue #303.

Because the rules inside the browscap.ini files never were sorted by length, I added a check to prove that the sortIndex is still ok, but for Chrome, Opera Mobile and the General Crawlers it was not. So I changed the sortIndex by Hand. A manuel test with the native `get_browser()` function did not raise any errors.

In the CollectionParser I also refactored two functions to reduce the complexity and duplicate code.