Revision 1916 libsylph/folder.c

folder.c (revision 1916)
335 335

  
336 336
	/* if both a and b are special folders, sort them according to
337 337
	 * their types (which is in-order). Note that this assumes that
338
	 * there are no multiple folders of a special type. */
339
	if (item_a->stype != F_NORMAL && item_b->stype != F_NORMAL)
338
	 * there are no multiple folders of a special type. As a special
339
	 * case, two virtual folders are compared like normal ones. */
340
	if (item_a->stype != F_NORMAL && item_b->stype != F_NORMAL &&
341
	    (item_a->stype != F_VIRTUAL || item_b->stype != F_VIRTUAL))
340 342
		return item_a->stype - item_b->stype;
341 343

  
342 344
	 /* if b is normal folder, and a is not, b is smaller (ends up

Also available in: Unified diff