Since the top bit is the sign bit, large values turned negative during sort and ended up before other notes. First step in building MML is to determine how many leading rests are before the first note, since the first note is actually very far into the pattern (usually around 16 measures), it padded the song with a bunch of silence. TL;DR, Sign bit screwing me up during sort function