public/javascripts/yui/datatable/datatable.js
function() {
    this.subscribe("theadCellClickEvent", this.onEventSortColumn); 	 

    // Backward compatibility
    var oSortedBy = this.get("sortedBy");
    if(oSortedBy) {
        if(oSortedBy.dir == "desc") {
            this._configs.sortedBy.value.dir = DT.CLASS_DESC;
        }
        else if(oSortedBy.dir == "asc") {
            this._configs.sortedBy.value.dir = DT.CLASS_ASC;
        }
    }
}
function() {
    this.subscribe("theadCellClickEvent", this.onEventSortColumn); 	 

    // Backward compatibility
    var oSortedBy = this.get("sortedBy");
    if(oSortedBy) {
        if(oSortedBy.dir == "desc") {
            this._configs.sortedBy.value.dir = DT.CLASS_DESC;
        }
        else if(oSortedBy.dir == "asc") {
            this._configs.sortedBy.value.dir = DT.CLASS_ASC;
        }
    }
}
function ( ) { this . subscribe ( "theadCellClickEvent" , this . onEventSortColumn ) ; // Backward compatibility var oSortedBy = this . get ( "sortedBy" ) ; if ( oSortedBy ) { if ( oSortedBy . dir == "desc" ) { this . _configs . sortedBy . value . dir = DT . CLASS_DESC ; } else if ( oSortedBy . dir == "asc" ) { this . _configs . sortedBy . value . dir = DT . CLASS_ASC ; } } }
Initializes Column sorting.

@method _initColumnSort
@private
Initializes Column sorting .