performance fix for challenges api.
Merge pull request #186 from Ghost141/challenges_api_improvement

Challenges api improvement
Fix sortcolumn error.
Merge pull request #187 from Ghost141/challenges_api_improvement

Fix sortcolumn error.
Merge pull request #188 from cloudspokes/performance-improvement

Challenges performance improvement