Sort courses based on enrollment count

Hello all,

I am on open-release/juniper.master and want to sort courses based on the enrollment count on /courses page. I have tried to set the comparator in backbone js but still not able to render the desired view (not backbone js expert though).

Please provide any help or pointer to achieve this.