Fix case where sample modal sort direction was opposite of indicator

Fix #390.

Signed-off-by: Don Naegely <naegelyd@gmail.com>