Fixed sorting versions #60.

Refactor Bowerphp::getPackageInfo.