Fix for Bug 7019 - Circulation History Sort Order Wrong
authorOwen Leonard <oleonard@myacpl.org>
Thu, 13 Oct 2011 15:59:48 +0000 (11:59 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 15 Oct 2011 01:21:06 +0000 (14:21 +1300)
commitbfaf07b2780ed033677683ef40ce04e55d7c2b3d
tree1391d838bce31bc79256fdd0b5551851d4a8b61c
parent5affbfc9fd5b6e5974aa9e64d074235046359950
Fix for Bug 7019 - Circulation History Sort Order Wrong

The return column sort was not using the right sort algorithm
because it was confused by the combination of date data and
text data ("Checked out"). I've added an explicit instruction
to sort by date. The downside to this change is that checked
out items are sorted with the oldest checkouts rather than
the newest:

Checked Out
Checked Out
10/14/1988
07/14/2005

Not perfect, but an improvement over completely incorrect
sorting. This patch also adds the necessary check for system
dateformat preference to properly sort metric dates.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt