jenkinsci / categorized-view-plugin

This is a plugin to create a new view named Categorized Jobs View, where jobs are grouped dynamically by regular expressions
https://plugins.jenkins.io/categorized-view/
GNU General Public License v3.0
11 stars 23 forks source link

Jobs are sorted by internal rather then visible name #3

Closed Eccenux closed 7 years ago

Eccenux commented 10 years ago

By default internal name (name of the job directory) and visible name is the same. But you can use advanced options to change what is visible (job configuration -> Advanced Project Options -> Display Name). After that in standard views "Name" column sorts by visible name (Display Name with Project name fallback).

So, the problem is that in Categorized Jobs View sorting is always done by Project name and not by the one visible for the user.

Project name is only shown in URL

taksan commented 10 years ago

I'll look into it. Thanks for reporting

FO-jonathan commented 9 years ago

+1 on this. Maybe a solution would be a different comparator where one could send the parameter one wishes to sort on. The getNestedItems() will always return a List, but the parameter on what to sort on can be different.

Zitrax commented 8 years ago

Another +1. This makes my views look unsorted after categorizing them.

The uncategorized/default view do seem to sort on the displayed name.

taksan commented 7 years ago

It's now possible to specify whether you want to group by display name or job name. It's not the default behavior to keep backwards behavior intact.