Project

General

Profile

Actions

Patch #16116

open

Sort of version options

Added by Daniel Felix about 10 years ago. Updated about 10 years ago.

Status:
Needs feedback
Priority:
Normal
Category:
Roadmap
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi there,

currently all versions are just sorted by an array.

This causes that our version field results in an unsorted order. Either id nor name or date (all dates are nil) is respected.

This way could improve the version sort.

See source:trunk/app/models/issue.rb#L743

Replace this line with

@assignable_versions = versions.uniq.sort_by{|v| [v.effective_date, v.name]}

This will sort the result in first place by effective date and otherwise by name.

Any regressions?

Best regards,
Daniel

Actions

Also available in: Atom PDF