fixes sort by amount