How To Use Views Natural Sort

Submitted by allan on Sun, 11/25/2012 - 18:42
If you are using the newer version, check out the documentation for Views Natural Sort 2.0.
Recently, due to an issue I got in my issue queue on Drupal.org, I realized that there may be a bit of confusion about how to use Views Natural Sort. The following is some information on how it works and a quick guide on how to use it.

About The Module

The module currently only works on Node Titles. Please be aware of this issue until issue #1614234 Allow sorting for any field on any entity is resolved.

Drupal 6

Step 1: Install Views Natural Sort Module

If you don't know how to do this, checkout the community documentation: Installing contributed modules. Using drush, it's as simple as going to your install directory and typing:
drush dl views_natural_sort -y; drush en views_natural_sort -y

Step 2: Modify Word Removal Settings

You may find that the default settings are not exactly what you need. Navigate to Administer > Site configuration > Views Natural Sort > Configure Word Removal Lists or the url admin/settings/views_natural_sort/settings. Follow the directions presented in for each word/character list. When you are done hit "Save Settings" and your node titles will be re-indexed for you automatically.

Step 3: Create The View

To create the view, the Views UI module must be enabled. I usually start with some defaults: After you click the next button, we need to make sure the row style is "Fields" and add our "Node: Title" field in the "Fields" section. Next add the "sort criteria "Node: Title - Natural". Hit "Save", add a "Page" display, and navigate to the new books sorting page!

Drupal 7

Step 1: Install Views Natural Sort Module

If you don't know how to do this, checkout the community documentation: Installing contributed modules. Using drush, it's as simple as going to your install directory and typing:
drush dl views_natural_sort -y; drush en views_natural_sort -y

Step 2: Modify Word Removal Settings

You may find that the default settings are not exactly what you need. Navigate to Configuration > Views Natural Sort > Configure Word Removal Lists or the url admin/config/views_natural_sort/settings. Follow the directions presented in for each word/character list. When you are done hit "Save Settings" and your node titles will be re-indexed for you automatically.

Step 3: Create The View

To create the view, the Views UI module must be enabled. I usually start with some defaults: After you click the next button, we need to make sure the row style is "Fields" and add our "Content: Title" field in the "Fields" section. Next add the "sort criteria "Node: Title - Natural". Hit "Save" and navigate to the new books sorting page!