sort by up-down first to make more senses