You can sort a table by column (in ascending or descending order) for any column that is indexed; an auto_increment column (such as a customerID field) will always be indexed.
If a field you want to sort on does not appear in the drop-down list, this means it has not yet been indexed. For information on indexing columns, see "Setting column indexes".