Skip to content

Commit

Permalink
fix(index with tags): sort pact publication by date, not string (#301)
Browse files Browse the repository at this point in the history
Use data-text attribute with date converted to integer to properly sort column
  • Loading branch information
evman182 authored and bethesque committed Sep 1, 2019
1 parent 75d3580 commit e92bde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/ui/views/index/show-with-tags.haml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
- index_item.provider_version_latest_tag_names.each do | tag_name |
.tag.label.label-primary
= escape_html(tag_name)
%td
%td{"data-text": index_item.publication_date_of_latest_pact_order}
= index_item.publication_date_of_latest_pact.gsub("about ", "")
%td{ class: index_item.webhook_status }
- if index_item.show_webhook_status?
Expand Down

0 comments on commit e92bde5

Please sign in to comment.