How to natural sort by text fields in Views? I'm trying to sort a view by a text field. The text field include numbers, in general.

While sorting it sorts as below:


1
10
11
2
20
...


But I want to make the sorting natural.

The Views Natural Sort module doesn't work, it only works with the Title field, unfortunately (there was some options to sort text fields before but now there isn't any option for this). 

How can I natural sort the view by text field? And use the table sort asc/sort desc feature?

(The field should be text field and couldn't be an integer field.)
As per Views Natural Sort module homepage, you should enable Enable Views Natural Sort Text Field support to make the text fields sortable.
Here are the steps:


Enable Views Natural Sort.
Also Enable Views Natural Sort Text Field support (this will most likely go away in the future)
Navigate to the fields edit page for the field that you wish to enable 1. Natural Sorting on and check &quot;Enable natural sorting.&quot;
http://screencast.com/t/eDkW0c6AC This is needed so that we aren't
indexing other text fields needlessly bloating the sorting table. In
the future there may be a separate table for each field, I'll have to
do some performance testing.
When you do that, your fields &quot;Should&quot; be reindexed... at that time. You should be taken to a batch operations screen.
Next you can go to the view you are editing and the option to sort the view naturally should be there. http://screencast.com/t/6XD7oeBtl

Note: When working with fields there is the need to enable fields for indexing. At the point the setting is enabled, the field is indexed and will be ready for use in a view. Follow the following steps to allow natural sorting on text fields: