(function(F){

	/**

	 * Sort the table using the specified column and direction. Added by the {@link FooTable.Sorting} component.

	 * @instance

	 * @param {(string|number|FooTable.Column)} column - The column name, index or the actual {@link FooTable.Column} object to sort by.

	 * @param {string} [direction="ASC"] - The direction to sort by, either ASC or DESC.

	 * @returns {jQuery.Promise}

	 * @fires FooTable.Sorting#"change.ft.sorting"

	 * @fires FooTable.Sorting#"changed.ft.sorting"

	 * @see FooTable.Sorting#sort

	 */

	F.Table.prototype.sort = function(column, direction){

		return this.use(F.Sorting).sort(column, direction);

	};

})(FooTable);