Fixed sorting versions #60.

Fixed sorting versions #60.
Refactor Bowerphp::getPackageInfo.