That has a problem if you generate a comparator over more than one preferred key. You're not providing for a stable comparison between two elements of the preferred list.
At best, that will lead to the sorted order depending on the unsorted order.
After Compline,
Zaxo
In reply to Re^2: Pulling an item to the front of the list
by Zaxo
in thread Pulling an item to the front of the list
by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |