How does the ranking system work?

My brother and I played our ten placement matches with each other in doubles, all ten together. Anyways, it placed me in gold four and him in gold two. I’ve always heard it was based solely on winning or losing, but it looks like this is not the case. Anyone have any details??