js error fixes while sorting
Merge pull request #4135 from kurund/pcp-listing

js error fixes while sorting