move compare to seperate function.
Merge branch 'master' of https://github.com/jordonp/ds-accelerate-apps