Skip to content

Commit e92bde5

Browse files
evman182bethesque
authored andcommitted
fix(index with tags): sort pact publication by date, not string (pact-foundation#301)
Use data-text attribute with date converted to integer to properly sort column
1 parent 75d3580 commit e92bde5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pact_broker/ui/views/index/show-with-tags.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
- index_item.provider_version_latest_tag_names.each do | tag_name |
6868
.tag.label.label-primary
6969
= escape_html(tag_name)
70-
%td
70+
%td{"data-text": index_item.publication_date_of_latest_pact_order}
7171
= index_item.publication_date_of_latest_pact.gsub("about ", "")
7272
%td{ class: index_item.webhook_status }
7373
- if index_item.show_webhook_status?

0 commit comments

Comments
 (0)