Issue Type: Bug Bug
Affects Versions: current
Assignee: Manuel Carrasco
Attachments: sorted.png, unsorted.png
Components: performance-plugin
Created: 22/May/14 5:37 PM
Description:

The report showed unsorted URIs, making it difficult to look for something when they are several rows. I've found there is a getUriListOrdered in PerformaceReport.java, but it was not sorting them. So I have added:
Collections.sort(UriReportList);

Now, it is like this:
public List<UriReport> getUriListOrdered() { Collection<UriReport> uriCollection = getUriReportMap().values(); List<UriReport> UriReportList = new ArrayList<UriReport>(uriCollection); Collections.sort(UriReportList); return UriReportList; }

This made the job, but the list of URIs was sorted in reverse alphabetic order (from Z to A, let's say)
So I went to UriReport.java and change the compareTo method
From
return uriReport.getUri().compareTo(this.getUri());

To
return this.getUri().compareTo(uriReport.getUri());

Project: Jenkins
Priority: Minor Minor
Reporter: pablo martinez
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to