diff --git a/app/models/version.rb b/app/models/version.rb index 6a7dae6a6..cd32da91e 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -162,8 +162,8 @@ class Version < ActiveRecord::Base "#{project} - #{name}" end - # Versions are sorted by effective_date and "Project Name - Version name" - # Those with no effective_date are at the end, sorted by "Project Name - Version name" + # Versions are sorted by effective_date and name + # Those with no effective_date are at the end, sorted by name def <=>(version) if self.effective_date if version.effective_date