docs: function toggleSort($cur) {
              var type = getFocusNavType(),
                  nav = navInfo[type],
                  direction;
  
              $cur.find('.sort i').toggleClass('cur');
  
              if ($cur.find('.sort .cur').hasClass('up')) {
                  direction = 1;
              } else {
                  direction = 0;
              }
  
              nav.direction = direction;
              nav.reload = true;
              search();
          }