Found this bug while testing:
Line 212 circulation.pl
Did not "reverse sort" todaysissues
changed <=> to cmp
It seems to work correctly now.