fixing issue where sorting by amount if they are equal, fall back to sorting by year