Added phpunit to composer
Better sorting flag
Added rankEq