Address book sorting functions. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "address/lib.h"
#include "config/lib.h"
#include "sort.h"
#include "alias.h"
#include "gui.h"
Go to the source code of this file.
Functions | |
static int | alias_sort_name (const void *a, const void *b, void *sdata) |
Compare two Aliases by their short names - Implements sort_t -. | |
static int | alias_sort_address (const void *a, const void *b, void *sdata) |
Compare two Aliases by their Addresses - Implements sort_t -. | |
static int | alias_sort_unsort (const void *a, const void *b, void *sdata) |
Compare two Aliases by their original configuration position - Implements sort_t -. | |
static sort_t | alias_get_sort_function (short sort) |
Sorting function decision logic. | |
void | alias_array_sort (struct AliasViewArray *ava, const struct ConfigSubset *sub) |
Sort and reindex an AliasViewArray. | |
Address book sorting functions.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file sort.c.
|
static |
Sorting function decision logic.
sort | Sort method, e.g. SORT_ALIAS |
Definition at line 148 of file sort.c.
void alias_array_sort | ( | struct AliasViewArray * | ava, |
const struct ConfigSubset * | sub | ||
) |
Sort and reindex an AliasViewArray.
ava | Array of Aliases |
sub | Config items |
Definition at line 168 of file sort.c.