Fix loan_count column not sorting correctly