## Uses of Class
com.sun.mail.imap.SortTerm

- Packages that use SortTerm
  Package | Description
  --- | ---
  com.sun.mail.imap | An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store.
  com.sun.mail.imap.protocol |

- - ### Uses of SortTerm in com.sun.mail.imap

    Fields in com.sun.mail.imap declared as SortTerm
    Modifier and Type | Field and Description
    --- | ---
    `static SortTerm` | SortTerm.`ARRIVAL` Sort by message arrival date and time.
    `static SortTerm` | SortTerm.`CC` Sort by email address of first Cc recipient.
    `static SortTerm` | SortTerm.`DATE` Sort by sent date and time.
    `static SortTerm` | SortTerm.`FROM` Sort by first From email address.
    `static SortTerm` | SortTerm.`REVERSE` Reverse the sort order of the following item.
    `static SortTerm` | SortTerm.`SIZE` Sort by the message size.
    `static SortTerm` | SortTerm.`SUBJECT` Sort by the base subject text.
    `static SortTerm` | SortTerm.`TO` Sort by email address of first To recipient.

    Methods in com.sun.mail.imap with parameters of type SortTerm
    Modifier and Type | Method and Description
    --- | ---
    `Message[]` | IMAPFolder.`getSortedMessages(SortTerm[] term)` Sort the messages in the folder according to the sort criteria.
    `Message[]` | IMAPFolder.`getSortedMessages(SortTerm[] term, SearchTerm sterm)` Sort the messages in the folder according to the sort criteria.

  - ### Uses of SortTerm in com.sun.mail.imap.protocol

    Methods in com.sun.mail.imap.protocol with parameters of type SortTerm
    Modifier and Type | Method and Description
    --- | ---
    `int[]` | IMAPProtocol.`sort(SortTerm[] term, SearchTerm sterm)` Sort messages in the folder according to the specified sort criteria.

Copyright © 2016 Oracle. All rights reserved.