added another ording method suggested by Kurt, and refactored result checking methods