def METHOD_NAME(pickleDir, logsDir, htmlDir):
    aoSorting = ""
    for i in range(len(ordering)):
        aoSorting += "["+ str(i+1) +",'desc'],"
    aoSorting += "[0, 'asc']"
    style = """
    <style type="text/css" title="currentStyle">
       @import "/SDT/html/jsExt/dataTables/media/css/demo_table.css";
    </style>
    <script type="text/javascript" src="/SDT/html/jsExt/dataTables/media/js/jquery.js"></script>
    <script type="text/javascript" src="/SDT/html/jsExt/dataTables/media/js/jquery.dataTables.js"></script>
    <script type="text/javascript" charset="utf-8">
	/* Initialise the table with the required column sorting data types */
	$(document).ready(function() {
		$('#mainTable').dataTable( {
                        "oLanguage": {
				"sLengthMenu": "Display _MENU_ records per page",
				"sInfoEmpty": "Showing 0 to 0 of 0 records"
				},
                        "aaSorting": [%s]
			} );
                $('#descriptionTable').dataTable( {
                        "aaSorting": [[0, 'asc']],
                        "bPaginate": false,
			"bLengthChange": false,
			"bFilter": false,
			"bSort": false,
			"bInfo": false,
			"bAutoWidth": false
                        });
                $('#descriptionTable thead th').css({'border-bottom': '1px solid black'});
	} );
    </script>
    """%(aoSorting)
    fmtr = SimpleHTMLFormatter(title="CMSSW integration builds", style=style, outFile = open(join(htmlDir,"cmsCRPage.html"), "w"))
    bv = BuildViewer(fmtr, pickleDir, logsDir, htmlDir)
    bv.showResults()