<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Better sorting in scan-build html report"
   href="http://llvm.org/bugs/show_bug.cgi?id=17797">17797</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Better sorting in scan-build html report
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mozbugbox@yahoo.com.au
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11480" name="attach_11480" title="Use browser's builtin array sort for more stable sort result">attachment 11480</a> <a href="attachment.cgi?id=11480&action=edit" title="Use browser's builtin array sort for more stable sort result">[details]</a></span>
Use browser's builtin array sort for more stable sort result

The sorting of bug table in the scan-build report is not very "stable". In the
sense when sorting by "Bug Type", the file names are not grouped together. The
filenames popup randomly for the same type of bug. 

What will be better is that when sorting by "File" first and then sorting by
"Bug Type", the bugs in the same file should be grouped together.

In the clang/tools/scan-build/sorttable.js, shaker_sort was used, but the sort
does not preserve previous sort order.

While on the firefox, with the default array sorting function, the previous
sort order will be preserved, i.e. after sorting by "File" then by "Bug Type",
filenames are grouped up for the same bug type.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>