Added sort testing and comparison