Add IMAP SORT command support

For more information please visit http://tools.ietf.org/html/rfc5256