Sorting History in Descending Order

There was a post some weeks ago, which the owner reported was bugged, but I never saw the corrected code released to the list?

Does anyone have the code, so that the last transaction (or indeed the latest Ticket) could be made to appear first?