/[webpac]/trunk2/eurovoc/js/usage.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk2/eurovoc/js/usage.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 493 by dpavlin, Sun Sep 26 22:14:56 2004 UTC revision 494 by dpavlin, Sun Oct 10 05:55:17 2004 UTC
# Line 110  function printResults(result) Line 110  function printResults(result)
110      return;      return;
111    }    }
112    
113      debug("sort results by title");
114      results.sort(sortResults_title);
115    
116    // Add results to main document    // Add results to main document
117    for(var i=result.length-1; i>=0; i--)    for(var i=result.length-1; i>=0; i--)
118    {    {
# Line 145  function printResults(result) Line 148  function printResults(result)
148    } catch(e) {}    } catch(e) {}
149    
150  }  }
151    
152    // override default sort by frequency and sort by headline
153    function sortResults_title(a, b)
154    {
155      return a.title == b.title ? 0 : ( a.title > b.title ? -1 : 1);
156    }

Legend:
Removed from v.493  
changed lines
  Added in v.494

  ViewVC Help
Powered by ViewVC 1.1.26