Added sorting test harness