Sorting dependancy fix on Django 1.5
Remove unused function