sorting proper for inbox and sentbox