Switched test to use an enum to determine what kind of sort to use