[REBOL] sort/compare

2003-12-07 Thread Anton Rolls
Just wondering if there is a way to find the indices of the pair of values passed to the compare function (directly, without using find). Here's a simple use of sort/compare: sort/compare a: [1 4 9 7 3 2] func [v1 v2][v2 < v1] Now here you can see how many comparisons occurred and at wh

[REBOL] sort compare function with refinement?

2001-02-26 Thread Raimund Dold
Hi, I try to sort a block of objects using a compare function with refinements to select the member of the object I want to sort after. But I always get an error if I use a refinement? How do I have to do this? I tried the following: sort/compare book-db :compare-book/title This resulted in