EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05543
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Order the result of two lists
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Order the result of two lists
- From: jens.vieler@id.uzh.ch
- Date: Thu, 7 Apr 2016 10:51:20 +0200
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@id.uzh.ch
phone: +41 44 63 56777
http://www.id.uzh.ch
- References:
- [EP-tech] Speed up citation
- From: jens.vieler@id.uzh.ch
- [EP-tech] Speed up citation
- Prev by Date: [EP-tech] OR2016 keynotes and accepted contributions announced; Early bird deadline is April 13th
- Next by Date: [EP-tech] User Roles
- Previous by thread: [EP-tech] Speed up citation
- Next by thread: [EP-tech] CRUD creation of non-eprint object types
- Index(es):