sort only if sortkey exists

seems to have problem with some version of angular
Merge pull request #135 from icyasblue/master

sort only if sortkey exists