allows sorting on messages, fixes buy request removal bug; closes #48