The Sort by degree... item (menu Edit) intends to sort the terms of the current function according to increasing or decreasing degrees (chosen in a dialog box).