There is no sorting anymore in ledgers, since they are computed and paged in on the DB side. If the wallet side balance is fine, then this isn't a DB issue but a GUI one.
At this point you'll have to wait for 0.96, which has a lot of fixes on that front.