I have struggled with this one for too long. I am writing a simple function to sort the records in a file. Specifically, financial transactions for the Ledger accounting program. I am using sort-subr and have defined the nextrec and endrec functions properly. This is verified by using sort-subr on the entire buffer, and it works flawlessly. When I try to sort only the records in the active region it ignores the first record and sorts all of the following records properly. I have to assume that afer all this time sort.el is well proven and therefore blameless. Here is my code, along with a snippet of data for it to munch on. Any hints would be greatly appreciated.