return in sort function -  issue #1