Task#3940 - Fix problem in mail list order when sorting received flag in...

... ImapAdapter.