Fixed sort order for avalanche problems bgraphic/varsom-ios#62