Changing order of case statement in ring_dir().