sorted offline messages