fixed sorting of balance