[EP-tech] Order the result of two lists

jens.vieler at id.uzh.ch jens.vieler at id.uzh.ch
Thu Apr 7 09:51:20 BST 2016


Does anybody has experiance with the order-option while generating lists?
I'm building two lists, combine them, and want to see a date-sorted result.

- AND works: 			$result  = $result1->intersect( $result2 ,
"-date" );
- OR does not sort correctly:	$result  = $result1->union( $result2 ,
"-date" );
- NOT does not sort correctly:  	$result  = $result1->remainder
( $result2 , "-date" );

A reorder() is too slow for big lists.

Any help is welcome
 Jens


--
Jens Vieler
Informatikdienste
Universität Zürich
Stampfenbachstrasse 73
CH-8006 Zürich

mail:  jens.vieler at id.uzh.ch
phone: +41 44 63 56777
http://www.id.uzh.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160407/b19b5012/attachment.html 


More information about the Eprints-tech mailing list