Sorting on study mode implemented.
Merge pull request #554 from ssushma/dev-branch

Sorting on study mode implemented.