Sort Planet and Galaxy ranks