Fix Buffer::compareTo(): if this buffer is visible, and the next one isn't, make us appear above it (fixes possible exception in the sorter)
Fix Buffer::compareTo(): if this buffer is visible, and the next one isn't, make us appear above it (fixes possible exception in the sorter)

zhaofengli/QuasselDroid,schaal/QuasselDroid,justjanne/QuasselDroid