When sorting the item detail table on catalogue/detail.pl the current library and home library columns sort by the branchcode instead of the branchname. To recreate: 1. add a branch with code AAA and name ZZZ branch. And 1 with code ZZZ and AAA branch. 2. Make some new items that belong to these branches on a given record. 3. Sort by Home librray or current library. 4. It sorts incorrectly by branchcode.
Testing this today, this problem has been solved by Bug 38130. Closing this one.