Fixed queue sorting bug in non-multi-thread builds.

This bug was causing audio distortion and spurious messages about the queue getting behind.