Update sorting.py

New method result_headers for new template change_list_headers.html