projects.js: Fix randomly redirecting issue
projects.js: Fix randomly redirecting issue

This will fix randomly redirecting issue of projects URL
by calling sortProjects after the query is done,
remove hard-coded redirection of pyFlakes and
change if condition to check for project's path
instead of project name.

Fixes https://github.com/coala/projects/issues/793

coala/projects,coala/projects,coala/projects,coala/projects,coala/projects