Modified toggle behavior and sorting method