Call applySort() at the startup

If not doing this the rootScope.predicate etc. variables are not set and angular silently fails sorting

Fixes #1150