Steps to duplicate:
Enter a patron name in the patron search box
Click the [+]
Select a specific library
All patrons from the selected library are returned alphabetically.
Confirmed this still happens even if you set the library first, then type in your search
This is because the branchcode or patron category "limit" is being passed to Search() in a way that implicitly OR's the results, rather than ANDing them. Unfortunately, with the currently implementation of Search(), this cannot be fixed without losing search on Extended Attributes.
The patch for 6513 has code that will solve this problem.
*** Bug 6500 has been marked as a duplicate of this bug. ***
I'm also observing this behavior if you limit by patron category!
This should have been fixed by bug 6253, and I do not observe this behavior in master.
Fixed by development for bug 6253.