Fixed message preview sorting bug