diff --git a/views_natural_sort.module b/views_natural_sort.module index ac8d85fb858797f33b257bd48dc95260b41af689..e809ed8fe7bdf21823433bbd76daf44ac225fc91 100644 --- a/views_natural_sort.module +++ b/views_natural_sort.module @@ -65,6 +65,14 @@ function views_natural_sort_views_api() { 'api' => 3.0, ); } +function views_natural_sort_module_implements_alter(&$implements, $hook) { + if ($hook == 'views_data_alter') { + // Make views natural sort always last so we get all the up to date info. + $group = $implements['views_natural_sort']; + unset($implements['views_natural_sort']); + $implements['views_natural_sort'] = $group; + } +} /** * Implements hook_views_natural_sort_get_entry_types(). diff --git a/views_natural_sort.views.inc b/views_natural_sort.views.inc index b87242cc44924b8df4a27a03b66232653a8652b6..7e994dd9ed63e6c9c0d8b2525d0db360fdc9b6e4 100644 --- a/views_natural_sort.views.inc +++ b/views_natural_sort.views.inc @@ -33,4 +33,3 @@ function views_natural_sort_views_data_alter(&$views_data) { } } } -