* Sort the list using a custom function */
| 756 | * Sort the list using a custom function |
| 757 | */ |
| 758 | void dList_sort (Dlist *lp, dCompareFunc func) |
| 759 | { |
| 760 | if (lp && lp->len > 1) { |
| 761 | QuickSort(lp->list, lp->list + lp->len - 1, func); |
| 762 | } |
| 763 | } |
| 764 | |
| 765 | /** |
| 766 | * Insert an element into a sorted list. |
no test coverage detected