Sorting on study mode implemented.