Inform the user of the sorting method selected
This commit is contained in:
parent
676e30b4ca
commit
9568d4f379
@ -234,10 +234,13 @@ cmp_loom_rank(struct loom *a, struct loom *b)
|
|||||||
static void
|
static void
|
||||||
sort_lpt(struct system *sys)
|
sort_lpt(struct system *sys)
|
||||||
{
|
{
|
||||||
if (sys->sort_by_rank)
|
if (sys->sort_by_rank) {
|
||||||
|
info("sorting looms by rank");
|
||||||
DL_SORT(sys->looms, cmp_loom_rank);
|
DL_SORT(sys->looms, cmp_loom_rank);
|
||||||
else
|
} else {
|
||||||
|
info("sorting looms by name");
|
||||||
DL_SORT(sys->looms, cmp_loom_id);
|
DL_SORT(sys->looms, cmp_loom_id);
|
||||||
|
}
|
||||||
|
|
||||||
for (struct loom *l = sys->looms; l; l = l->next)
|
for (struct loom *l = sys->looms; l; l = l->next)
|
||||||
loom_sort(l);
|
loom_sort(l);
|
||||||
|
Loading…
Reference in New Issue
Block a user