Fixed wrong sorting in friends
Fixed lint errors