Fix sorting by on-time repayments

Closes #107