public int compareTo(Object obj) {
            if (!(obj instanceof NameRecord)) {
                return -1;
            }
            
            NameRecord rec = (NameRecord) obj;
            
            if (platformID > rec.platformID) {
                return 1;
            } else if (platformID < rec.platformID) {
                return -1;
            } else if (platformSpecificID > rec.platformSpecificID) {
                return 1;
            } else if (platformSpecificID < rec.platformSpecificID) {
                return -1;
            } else if (languageID > rec.languageID) {
                return 1;
            } else if (languageID < rec.languageID) {
                return -1;
            } else if (nameID > rec.nameID) {
                return 1;
            } else if (nameID < rec.nameID) {
                return -1;
            } else {
                return 0;
            }
        }