Bug 11150

Summary: Sorting does not respect branch filters ( at least not for accession date )
Product: Koha Reporter: Kyle M Hall <kyle>
Component: SearchingAssignee: Galen Charlton <gmcharlt>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Kyle M Hall 2013-10-28 15:51:50 UTC
Let us assume LibraryA and LibraryB each have a copy of Book1 and Book2.

LibraryA's copy of Book1 has an acquisition date of 2001, and their copy of Book2 has an acquisition date of 2010. 

LibraryB's copy of Book1 has an acquisition date of 2013, and their copy of Book2 has an aquisition date of 2006.

If we do an advanced search which a branch limit for LibraryA, and sorted by "Acquisition date: newest to oldest", we would expect the results to be ordered:
1. Book2
2. Book1

However, what we actually get is:
1. Book1
2. Book2

This is because the search is sorting by *all* the acquisition dates, not just the acquisition dates of LibraryA's holdings.