Fixed sorting versions #60.

Refactor Bowerphp::getPackageInfo.
This is not in the current file. Looks like you still need to base your PR on current master