48 const bool sort_reverse = *(
bool *) sdata;
56 return sort_reverse ? -rc : rc;
68 const bool sort_reverse = *(
bool *) sdata;
71 return sort_reverse ? -rc : rc;
83 const bool sort_reverse = *(
bool *) sdata;
91 return sort_reverse ? -rc : rc;
103 const bool sort_reverse = *(
bool *) sdata;
110 return sort_reverse ? -rc : rc;
122 const bool sort_reverse = *(
bool *) sdata;
130 return sort_reverse ? -rc : rc;
142 const bool sort_reverse = *(
bool *) sdata;
145 return sort_reverse ? -rc : rc;
#define ARRAY_SORT(head, fn, sdata)
Sort an array.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
static int sb_sort_desc(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by description - Implements sort_t -.
static int sb_sort_unread(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by unread - Implements sort_t -.
int mutt_str_inbox_cmp(const char *a, const char *b)
Do two folders share the same path and one is an inbox -.
static int sb_sort_flagged(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by flagged - Implements sort_t -.
static int sb_sort_unsorted(const void *a, const void *b, void *sdata)
Compare two Sidebar entries into their original order - Implements sort_t -.
static int sb_sort_order(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by order of creation - Implements sort_t -.
static int sb_sort_path(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by path - Implements sort_t -.
static int sb_sort_count(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by count - Implements sort_t -.
Convenience wrapper for the library headers.
int mutt_str_cmp(const char *a, const char *b)
Compare two strings, safely.
int mutt_str_coll(const char *a, const char *b)
Collate two strings (compare using locale), safely.
int(* sort_t)(const void *a, const void *b, void *sdata)
#define SORT_MASK
Mask for the sort id.
SortType
Methods for sorting.
@ SORT_ORDER
Sort by the order the messages appear in the mailbox.
@ SORT_PATH
Sort by the folder's path.
@ SORT_FLAGGED
Sort by the number of flagged emails.
@ SORT_DESC
Sort by the folder's description.
@ SORT_COUNT
Sort by number of emails in a folder.
@ SORT_UNREAD
Sort by the number of unread emails.
#define SORT_REVERSE
Reverse the order of the sort.
Assorted sorting methods.
#define mutt_numeric_cmp(a, b)
int msg_count
Total number of messages.
char * name
A short name for the Mailbox.
int msg_flagged
Number of flagged messages.
int msg_unread
Number of unread messages.
int gen
Generation number, for sorting.
Info about folders in the sidebar.
struct Mailbox * mailbox
Mailbox this represents.