fix sort of incremental total