Index: ../drupal-7.14/sites/all/modules/xmlsitemap/xmlsitemap_custom/xmlsitemap_custom.admin.inc
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ../drupal-7.14/sites/all/modules/xmlsitemap/xmlsitemap_custom/xmlsitemap_custom.admin.inc	(revision )
+++ ../drupal-7.14/sites/all/modules/xmlsitemap/xmlsitemap_custom/xmlsitemap_custom.admin.inc	(revision )
@@ -21,11 +21,11 @@
   $rows = array();
   $destination = drupal_get_destination();
 
-  $query = db_select('xmlsitemap');
+  $query = db_select('xmlsitemap')
+  ->extend('PagerDefault')->limit(50)
+  ->extend('TableSort')->orderByHeader($header);
   $query->fields('xmlsitemap');
   $query->condition('type', 'custom');
-  $query->extend('PagerDefault')->limit(50);
-  $query->extend('TableSort')->orderByHeader($header);
   $result = $query->execute();
 
   foreach ($result as $link) {
