Fixing sort issue for expenses