You want to use $a64.cmpUI64, not parseInt; account id's are $a64 values.  Read/skim https://github.com/mozilla-b2g/gaia-email-libs-and-more/blob/master/data/lib/mailapi/a64.js.

(note: this comment was originally in the gaia commit because I got confused.)