Use object's lat and long, and sort out items by distance

Hi all,
I need to sort a restaurant list from the closest to the farest from the user. For that I have
1 - html with an ng-repeat
2 - pulling data from factory
3 - a stand alone js module that gets both user’s location and can calculate distance betweeb two geo-coordiantes.

I don’t really know where to start in terms of pulling lat&long from factory to inject in the js module and return result to html. All code is here on plunker. thanks for your help !

Solution found, working plunker here