https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44191 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212180 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212180&action=edit Bug 44191: Sort match candidates by numeric score Bug 44191: Sort match candidates by numeric score C4::Matcher::get_matches sorted the candidates with cmp, so as text a score of 900 ranked above 1000 and a weaker match could be kept while the best one was dropped (staging keeps only the first). The record_id tie-break had the same problem. Both now compare numerically. Test plan: 1. prove t/db_dependent/Matcher.t The new subtest fails without the patch: the candidate scoring 900 is returned instead of the one scoring 1000. 2. Apply the patch, prove again: all pass. 3. Optional, in the staff interface: a biblio matching rule with isbn (020$a, score 1000) and title (245$a, score 500), threshold 500. Stage a record that has record A's ISBN and record B's title. Without the patch the staged record matches B; with it, A. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.